Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit661571e

Browse files
committed
[FrameworkBundle] Fix BC break on WebTestCase::createClient
1 parent791a212 commit661571e

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
namespaceSymfony\Bundle\FrameworkBundle\Test;
1313

14-
useSymfony\Bundle\FrameworkBundle\KernelBrowser;
14+
useSymfony\Bundle\FrameworkBundle\Client;
1515
useSymfony\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-
* @returnKernelBrowser AKernelBrowser instance
38+
* @returnClient AClient instance
3939
*/
4040
protectedstaticfunctioncreateClient(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
thrownew \LogicException('You cannot create the client used in functional tests if the "framework.test" config is not set to true.');
4949
}
5050
thrownew \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)

[8]ページ先頭

©2009-2025 Movatter.jp