I have single test
$response=$this->call('GET', '/');
$this->assertResponseOk();
that fails with Symfony\Component\HttpKernel\Exception\NotFoundHttpException when I run
phpunit
from commandline in project dir and I have phpunit.xml (from laravel) in project dir
BUT when I run tests from Netbeans - it passes.
I copied Netbeans output command to commandline
phpunit "C:\Program Files\NetBeans 8.0\php\phpunit\NetBeansSuite.php" "--run=C:\Program Files (x86)\wamp\www\platform\workbench\neyl\customers\tests;C:\Program Files (x86)\wamp\www\platform\app\tests"
and it also works!
So, test works when being called from NetbeansSuite.php but not from regular commandline. Even
phpunit MyTest.php
fails
How can this be? What factor is diiferent when using PHPUnit_Framework_TestSuite than regular cli?