I am trying to run a basic functional test using WebTestCase in a Symfony 4 application. When I run my test, I get this output:
1) Tests\Application\EndToEnd\AuthenticationTest::testAuthenticationMethodNotAllowed RuntimeException: Class "App\Kernel" doesn't exist or cannot be autoloaded. Check that the KERNEL_CLASS value in phpunit.xml matches the fully-qualified class name of your Kernel or override the Tests\Application\EndToEnd\AuthenticationTest::createKernel() method.
Trying to follow the advice in this answer, I edit vendor/phpunit/phpunit/phpunit.xml
and add this line:
<server name="KERNEL_CLASS" value="AppKernel" />
and here's where it gets interesting: I still get the complaint about App\Kernel
-- with the backslash -- being unavailable.
This tells me that I'm probably editing the wrong XML file, since my edited-in value doesn't contain a backslash. In which XML file should I be adding my definition?