I am trying to write a functional test for my application, but I am getting the following error:
InvalidArgumentException: The option "test_case" must be set.
I tried google search but did not find any hints.
My code is:
class WhateverTest extends WebTestCase { public function testWhatever() { $client = static::createClient(); $crawler = $client->request('GET', '/home'); $this->assertEquals(1, 1); }
in phpunit.xml the kernel is installed
<php> <server name="KERNEL_DIR" value="app/" /> </php>
My AppKernel has only two functions: registerBundles() and registerContainerConfiguration
symfony testing phpunit
greg
source share