Replace class with new name.

This commit is contained in:
Serkan Yildiz 2019-03-22 12:59:39 +01:00
parent 522594a69d
commit 28b6dd243e

View File

@ -36,7 +36,7 @@ abstract class WebTestCase extends KernelTestCase
try {
$client = $kernel->getContainer()->get('test.client');
} catch (ServiceNotFoundException $e) {
if (class_exists(Client::class)) {
if (class_exists(KernelBrowser::class)) {
throw new \LogicException('You cannot create the client used in functional tests if the "framework.test" config is not set to true.');
}
throw new \LogicException('You cannot create the client used in functional tests if the BrowserKit component is not available. Try running "composer require symfony/browser-kit"');