From 2ae30a7e3da762113ab3dd4488156e08802b5682 Mon Sep 17 00:00:00 2001 From: Valentin Udaltsov Date: Wed, 3 Apr 2019 11:22:11 +0300 Subject: [PATCH] Rename WebTestAssertions -> WebTestAssertionsTrait --- .../{WebTestAssertions.php => WebTestAssertionsTrait.php} | 2 +- src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php | 2 +- .../Bundle/FrameworkBundle/Tests/Test/WebTestCaseTest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/Symfony/Bundle/FrameworkBundle/Test/{WebTestAssertions.php => WebTestAssertionsTrait.php} (99%) 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; 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