On my computer I have a CakePHP Project. And inside the cakephp project I have a composer.json
file like below:
{
"name": "a/b",
"description": "c",
"require-dev": {
"phpunit/phpunit": "3.7.*",
"phpunit/phpunit-selenium": ">=1.2"
},
"license": "Proprietary",
"authors": [
{
"name": "d",
"email": "e"
}
],
"minimum-stability": "f"
}
After running composer install
I have phpunit and the selenium package installed and working here
/cakephpproject/vendor/bin/phpunit
/cakephpproject/vendor/phpunit/phpunit-selenium
Now from the /cakephpproject/app/
I tried to run the following command
../vendor/bin/phpunit Test/Case/Controller/MyControllerTest
But I am receiving the following error message
Fatal error: Class 'App' not found...
If I use ./Console/cake test app Controller/GranulesController
the test does attempt to run but throws the PHPUnit_Extensions_Selenium2TestCase not found
error since on the system PHPUnit Selenium is not installed.
How do I make cakephp use the phpunit & the phpunit-selenium I installed using composer and not use the phpunit installed globally?