From 28b6dd243e6e5a93e96342d03dcb580cd86d892a Mon Sep 17 00:00:00 2001 From: Serkan Yildiz Date: Fri, 22 Mar 2019 12:59:39 +0100 Subject: [PATCH] Replace class with new name. --- src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php index b088219afccf..5334d583610c 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php @@ -36,7 +36,7 @@ protected static function createClient(array $options = [], array $server = []) 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"');