diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/AbstractWebTestCase.php similarity index 97% rename from src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php rename to src/Symfony/Bundle/FrameworkBundle/Test/AbstractWebTestCase.php index 5da58fa5b87d6..e10afc5f29044 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/AbstractWebTestCase.php @@ -19,7 +19,7 @@ * * @author Fabien Potencier */ -abstract class WebTestCase extends KernelTestCase +abstract class AbstractWebTestCase extends KernelTestCase { use WebTestAssertionsTrait; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/WebTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/WebTestCase.php index 00eda6570906d..9a2cb2127f839 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/WebTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/WebTestCase.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Functional; -use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase; +use Symfony\Bundle\FrameworkBundle\Test\AbstractWebTestCase as BaseWebTestCase; use Symfony\Component\Filesystem\Filesystem; class WebTestCase extends BaseWebTestCase diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php index c77e5a6f2def7..cbb94fb019b66 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php @@ -15,7 +15,7 @@ use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle\Test\WebTestAssertionsTrait; -use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; +use Symfony\Bundle\FrameworkBundle\Test\AbstractWebTestCase; use Symfony\Component\BrowserKit\Cookie; use Symfony\Component\BrowserKit\CookieJar; use Symfony\Component\DomCrawler\Crawler; @@ -235,7 +235,7 @@ public function testAssertRouteSame() $this->getRequestTester()->assertRouteSame('articles'); } - private function getResponseTester(Response $response): WebTestCase + private function getResponseTester(Response $response): AbstractWebTestCase { $client = $this->createMock(KernelBrowser::class); $client->expects($this->any())->method('getResponse')->willReturn($response); @@ -243,7 +243,7 @@ private function getResponseTester(Response $response): WebTestCase return $this->getTester($client); } - private function getCrawlerTester(Crawler $crawler): WebTestCase + private function getCrawlerTester(Crawler $crawler): AbstractWebTestCase { $client = $this->createMock(KernelBrowser::class); $client->expects($this->any())->method('getCrawler')->willReturn($crawler); @@ -251,7 +251,7 @@ private function getCrawlerTester(Crawler $crawler): WebTestCase return $this->getTester($client); } - private function getClientTester(): WebTestCase + private function getClientTester(): AbstractWebTestCase { $client = $this->createMock(KernelBrowser::class); $jar = new CookieJar(); @@ -261,7 +261,7 @@ private function getClientTester(): WebTestCase return $this->getTester($client); } - private function getRequestTester(): WebTestCase + private function getRequestTester(): AbstractWebTestCase { $client = $this->createMock(KernelBrowser::class); $request = new Request(); @@ -272,9 +272,9 @@ private function getRequestTester(): WebTestCase return $this->getTester($client); } - private function getTester(KernelBrowser $client): WebTestCase + private function getTester(KernelBrowser $client): AbstractWebTestCase { - return new class($client) extends WebTestCase { + return new class($client) extends AbstractWebTestCase { use WebTestAssertionsTrait; public function __construct(KernelBrowser $client) diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php index 9bcbc0532481d..307d5194c2362 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php @@ -11,7 +11,7 @@ namespace Symfony\Bundle\SecurityBundle\Tests\Functional; -use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase; +use Symfony\Bundle\FrameworkBundle\Test\AbstractWebTestCase as BaseWebTestCase; use Symfony\Component\Filesystem\Filesystem; class WebTestCase extends BaseWebTestCase