Skip to content

Commit e11018c

Browse files
committed
minor #58362 [HttpKernel] do not use the Test suffix for non test classes (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [HttpKernel] do not use the Test suffix for non test classes | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 7ad8ed8fc5 do not use the Test suffix for non test classes
2 parents f893877 + 81c5c32 commit e11018c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Test/FormPerformanceTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\Form\Test;
1313

14-
use Symfony\Component\Form\Tests\VersionAwareTest;
14+
use Symfony\Component\Form\Tests\VersionAwareTestTrait;
1515

1616
/**
1717
* Base class for performance tests.
@@ -23,7 +23,7 @@
2323
*/
2424
abstract class FormPerformanceTestCase extends FormIntegrationTestCase
2525
{
26-
use VersionAwareTest;
26+
use VersionAwareTestTrait;
2727

2828
protected int $maxRunningTime = 0;
2929

Tests/Extension/Core/Type/BaseTypeTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
namespace Symfony\Component\Form\Tests\Extension\Core\Type;
1313

1414
use Symfony\Component\Form\Test\TypeTestCase;
15-
use Symfony\Component\Form\Tests\VersionAwareTest;
15+
use Symfony\Component\Form\Tests\VersionAwareTestTrait;
1616

1717
/**
1818
* @author Bernhard Schussek <[email protected]>
1919
*/
2020
abstract class BaseTypeTestCase extends TypeTestCase
2121
{
22-
use VersionAwareTest;
22+
use VersionAwareTestTrait;
2323

2424
public const TESTED_TYPE = '';
2525

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @deprecated since Symfony 7.2, use feature detection instead.
1616
*/
17-
trait VersionAwareTest
17+
trait VersionAwareTestTrait
1818
{
1919
protected static int $supportedFeatureSetVersion = 404;
2020

@@ -23,7 +23,7 @@ trait VersionAwareTest
2323
*/
2424
protected function requiresFeatureSet(int $requiredFeatureSetVersion)
2525
{
26-
trigger_deprecation('symfony/form', '7.2', 'The "%s" trait is deprecated, use feature detection instead.', VersionAwareTest::class);
26+
trigger_deprecation('symfony/form', '7.2', 'The "%s" trait is deprecated, use feature detection instead.', VersionAwareTestTrait::class);
2727

2828
if ($requiredFeatureSetVersion > static::$supportedFeatureSetVersion) {
2929
$this->markTestSkipped(\sprintf('Test requires features from symfony/form %.2f but only version %.2f is supported.', $requiredFeatureSetVersion / 100, static::$supportedFeatureSetVersion / 100));

0 commit comments

Comments
 (0)