Mocking Symfony Container services in Behat scenarios with Mockery
Mocking objects in unit tests is pretty straight forward as every object used in a test case is usually created in a scope of one test class. In functional tests it's a bit harder since we either don't have full control over objects being created or it's simply too laborious to mock half the framework. Instead of functional tests I'm using Behat. In the context of this blog post it satisfies the same need - verifies the external behavior of an application.
- One post tagged with agile
- One post tagged with apache
- One post tagged with apc
- One post tagged with apostrophe
- One post tagged with autoloader
- 2 posts tagged with bash
- 2 posts tagged with bdd
- 2 posts tagged with behat
- 7 posts tagged with best practices
- One post tagged with blog
- 3 posts tagged with cache
- One post tagged with capifony
- One post tagged with capistrano
- 2 posts tagged with chrome
- 2 posts tagged with chromium
- One post tagged with ClassLoader
- One post tagged with cli
- One post tagged with community
- 4 posts tagged with components
- One post tagged with conference
- 4 posts tagged with configuration
- One post tagged with Console
- One post tagged with contributing
- 2 posts tagged with ctags
- 2 posts tagged with DependencyInjection
- One post tagged with deployment
- One post tagged with DIC
- 2 posts tagged with doctrine
- 4 posts tagged with doctrine2
- 2 posts tagged with filter
- One post tagged with Finder
- One post tagged with form
- One post tagged with fun
- One post tagged with git
- One post tagged with gnome
- 2 posts tagged with google
- One post tagged with htaccess
- 2 posts tagged with html
- 8 posts tagged with installation
- One post tagged with kde
- 3 posts tagged with linux
- One post tagged with mockery
- 2 posts tagged with mysql
- One post tagged with nerdtree
- 4 posts tagged with nginx
- 2 posts tagged with onTheEdge
- One post tagged with oop
- One post tagged with parsers
- 2 posts tagged with performance
- 26 posts tagged with php
- One post tagged with phpunit
- 3 posts tagged with plugin
- One post tagged with postgresql
- 2 posts tagged with productivity
- One post tagged with script
- One post tagged with sflive2011
- One post tagged with sfWebBrowser
- One post tagged with SimpleXML
- 2 posts tagged with svn
- 10 posts tagged with symfony
- 16 posts tagged with Symfony2
- One post tagged with symphony
- One post tagged with taglist
- One post tagged with tdd
- One post tagged with testing
- One post tagged with textile
- One post tagged with twig
- 11 posts tagged with ubuntu
- 8 posts tagged with vim
- One post tagged with WordPress
- 4 posts tagged with wrap up
- One post tagged with xcache



















