diff --git a/src/Symfony/Component/Form/Test/FormPerformanceTestCase.php b/src/Symfony/Component/Form/Test/FormPerformanceTestCase.php index 4494ffced48a2..54ccc67cfd9fe 100644 --- a/src/Symfony/Component/Form/Test/FormPerformanceTestCase.php +++ b/src/Symfony/Component/Form/Test/FormPerformanceTestCase.php @@ -11,7 +11,6 @@ namespace Symfony\Component\Form\Test; -use Symfony\Component\Form\Test\Traits\RunTestTrait; use Symfony\Component\Form\Tests\VersionAwareTest; /** @@ -24,12 +23,11 @@ */ abstract class FormPerformanceTestCase extends FormIntegrationTestCase { - use RunTestTrait; use VersionAwareTest; protected int $maxRunningTime = 0; - private function doRunTest(): mixed + protected function runTest(): mixed { $s = microtime(true); $result = parent::runTest(); @@ -45,7 +43,7 @@ private function doRunTest(): mixed /** * @throws \InvalidArgumentException */ - public function setMaxRunningTime(int $maxRunningTime) + public function setMaxRunningTime(int $maxRunningTime): void { if ($maxRunningTime < 0) { throw new \InvalidArgumentException(); diff --git a/src/Symfony/Component/Form/Test/Traits/RunTestTrait.php b/src/Symfony/Component/Form/Test/Traits/RunTestTrait.php deleted file mode 100644 index 17204b96703f2..0000000000000 --- a/src/Symfony/Component/Form/Test/Traits/RunTestTrait.php +++ /dev/null @@ -1,36 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Form\Test\Traits; - -use PHPUnit\Framework\TestCase; - -if ((new \ReflectionMethod(TestCase::class, 'runTest'))->hasReturnType()) { - // PHPUnit 10 - /** @internal */ - trait RunTestTrait - { - protected function runTest(): mixed - { - return $this->doRunTest(); - } - } -} else { - // PHPUnit 9 - /** @internal */ - trait RunTestTrait - { - protected function runTest() - { - return $this->doRunTest(); - } - } -} 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