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 25eac6fe0a..ce6c514518 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestAssertions.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/WebTestAssertionsTrait.php @@ -26,7 +26,7 @@ use Symfony\Component\HttpFoundation\Test\Constraint as ResponseConstraint; * * @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 aa2b12ea29..417556578b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php @@ -21,7 +21,7 @@ use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; */ 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 92f200be1f..e43edabe6d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php @@ -14,7 +14,7 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Test; 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 @@ class WebTestCaseTest extends TestCase private function getTester(KernelBrowser $client): WebTestCase { return new class($client) extends WebTestCase { - use WebTestAssertions; + use WebTestAssertionsTrait; protected static $client;