Skip to content

Commit 17b3787

Browse files
minor #49253 [PHPUnit 10] Use TestCase suffix for abstract tests in /Tests/ (OskarStark)
This PR was merged into the 6.3 branch. Discussion ---------- [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/` | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Refs symfony/symfony#49233 | License | MIT | Doc PR | n/a Replaces #49234 Using `Test` suffix is deprecated since PHPUnit 10 Spotted in * symfony/symfony#49233 Commits ------- cb3db968e4 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
1 parent ad06f57 commit 17b3787

7 files changed

+7
-7
lines changed

Tests/Loader/AbstractAnnotationLoaderTest.php renamed to Tests/Loader/AbstractAnnotationLoaderTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Routing\Loader\AnnotationClassLoader;
1616

17-
abstract class AbstractAnnotationLoaderTest extends TestCase
17+
abstract class AbstractAnnotationLoaderTestCase extends TestCase
1818
{
1919
public function getReader()
2020
{

Tests/Loader/AnnotationClassLoaderTest.php renamed to Tests/Loader/AnnotationClassLoaderTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Routing\Loader\AnnotationClassLoader;
1616
use Symfony\Component\Routing\Tests\Fixtures\AnnotationFixtures\AbstractClassController;
1717

18-
abstract class AnnotationClassLoaderTest extends TestCase
18+
abstract class AnnotationClassLoaderTestCase extends TestCase
1919
{
2020
/**
2121
* @var AnnotationClassLoader

Tests/Loader/AnnotationClassLoaderWithAnnotationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\Routing\Loader\AnnotationClassLoader;
1717
use Symfony\Component\Routing\Route;
1818

19-
class AnnotationClassLoaderWithAnnotationsTest extends AnnotationClassLoaderTest
19+
class AnnotationClassLoaderWithAnnotationsTest extends AnnotationClassLoaderTestCase
2020
{
2121
protected function setUp(string $env = null): void
2222
{

Tests/Loader/AnnotationClassLoaderWithAttributesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* @requires PHP 8
1919
*/
20-
class AnnotationClassLoaderWithAttributesTest extends AnnotationClassLoaderTest
20+
class AnnotationClassLoaderWithAttributesTest extends AnnotationClassLoaderTestCase
2121
{
2222
protected function setUp(string $env = null): void
2323
{

Tests/Loader/AnnotationDirectoryLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Config\FileLocator;
1515
use Symfony\Component\Routing\Loader\AnnotationDirectoryLoader;
1616

17-
class AnnotationDirectoryLoaderTest extends AbstractAnnotationLoaderTest
17+
class AnnotationDirectoryLoaderTest extends AbstractAnnotationLoaderTestCase
1818
{
1919
protected $loader;
2020
protected $reader;

Tests/Loader/AnnotationFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Routing\Annotation\Route;
1616
use Symfony\Component\Routing\Loader\AnnotationFileLoader;
1717

18-
class AnnotationFileLoaderTest extends AbstractAnnotationLoaderTest
18+
class AnnotationFileLoaderTest extends AbstractAnnotationLoaderTestCase
1919
{
2020
protected $loader;
2121
protected $reader;

Tests/Loader/DirectoryLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symfony\Component\Routing\Loader\YamlFileLoader;
1919
use Symfony\Component\Routing\RouteCollection;
2020

21-
class DirectoryLoaderTest extends AbstractAnnotationLoaderTest
21+
class DirectoryLoaderTest extends AbstractAnnotationLoaderTestCase
2222
{
2323
private $loader;
2424
private $reader;

0 commit comments

Comments
 (0)