I always get status code 200/ok in my test case even if the requested page doen’t exists.
public function testCompleteScenario()
{
$client = static::createClient();
$container = $client->getContainer();
$kernel = $client->getKernel();
$crawler = $client->request('GET', '/somethingnotexisting');
$this->assertTrue(200 === $client->getResponse()->getStatusCode());
}
I am using phpunits with netbeans 7.1 and my symfony firewall is configure to allow only authenticated user. Otherwise they re redirected to the login page.
There is maybe some php.ini tuning to do ?
EDIT :
Here is the code i have from netbeans :

I spent 3 days trying to resolve this.
I had downgrade my PHPUnit version from 3.6.11 to 3.5.14.
It works better with NetBeans now