diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestAssertions.php b/src/Symfony/Bundle/FrameworkBundle/Test/WebTestAssertionsTrait.php similarity index 99% rename from src/Symfony/Bundle/FrameworkBundle/Test/WebTestAssertions.php rename to src/Symfony/Bundle/FrameworkBundle/Test/WebTestAssertionsTrait.php index 25eac6fe0ab38..ce6c514518d76 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestAssertions.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/WebTestAssertionsTrait.php @@ -26,7 +26,7 @@ * * @see https://laravel.com/docs/5.7/dusk#available-assertions */ -trait WebTestAssertions +trait WebTestAssertionsTrait { public static function assertResponseIsSuccessful(string $message = ''): void { diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php index aa2b12ea296ec..417556578b7b7 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php @@ -21,7 +21,7 @@ */ abstract class WebTestCase extends KernelTestCase { - use WebTestAssertions; + use WebTestAssertionsTrait; /** @var Client|null */ protected static $client; diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php index 92f200be1fab7..e43edabe6d542 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php @@ -14,7 +14,7 @@ use PHPUnit\Framework\AssertionFailedError; use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\KernelBrowser; -use Symfony\Bundle\FrameworkBundle\Test\WebTestAssertions; +use Symfony\Bundle\FrameworkBundle\Test\WebTestAssertionsTrait; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\BrowserKit\Cookie; use Symfony\Component\BrowserKit\CookieJar; @@ -275,7 +275,7 @@ private function getRequestTester(): WebTestCase private function getTester(KernelBrowser $client): WebTestCase { return new class($client) extends WebTestCase { - use WebTestAssertions; + use WebTestAssertionsTrait; protected static $client;
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: