My current project in Symfony framework, 2.3 LTS, and I need to use mockery to make my life a whole lot easier.
The process consists of three steps, of which step 3 is least documented.
First you need to add mockery to your composer.json among other libs you will use
1 2 3 4 5 6 7
Second step is to add the mockery listener to your phpunit.xml in the app dir
1 2 3 4 5
when you run the composer install, the composer will download the mockery from the repo, and install it in the vendors dir. The phpunit will know to use the listner, but the project itself have no idea what mockery is at this point, and where to find it. To fix that in app/autoloader.php before ‘return $loader;’
1 2 3 4 5 6
And you are good to go…