Skip to content

Commit 661571e

Browse files
committed
[FrameworkBundle] Fix BC break on WebTestCase::createClient
1 parent 791a212 commit 661571e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Test;
1313

14-
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
14+
use Symfony\Bundle\FrameworkBundle\Client;
1515
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
1616

1717
/**
@@ -35,7 +35,7 @@ protected function doTearDown(): void
3535
* @param array $options An array of options to pass to the createKernel method
3636
* @param array $server An array of server parameters
3737
*
38-
* @return KernelBrowser A KernelBrowser instance
38+
* @return Client A Client instance
3939
*/
4040
protected static function createClient(array $options = [], array $server = [])
4141
{
@@ -44,7 +44,7 @@ protected static function createClient(array $options = [], array $server = [])
4444
try {
4545
$client = $kernel->getContainer()->get('test.client');
4646
} catch (ServiceNotFoundException $e) {
47-
if (class_exists(KernelBrowser::class)) {
47+
if (class_exists(Client::class)) {
4848
throw new \LogicException('You cannot create the client used in functional tests if the "framework.test" config is not set to true.');
4949
}
5050
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"');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy