Skip to content

Commit a95ab35

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 86d108e commit a95ab35

36 files changed

+53
-49
lines changed

Tests/Console/Descriptor/AbstractDescriptorTest.php renamed to Tests/Console/Descriptor/AbstractDescriptorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use Symfony\Component\Routing\Route;
2525
use Symfony\Component\Routing\RouteCollection;
2626

27-
abstract class AbstractDescriptorTest extends TestCase
27+
abstract class AbstractDescriptorTestCase extends TestCase
2828
{
2929
private $colSize;
3030

Tests/Console/Descriptor/JsonDescriptorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Bundle\FrameworkBundle\Console\Descriptor\JsonDescriptor;
1515

16-
class JsonDescriptorTest extends AbstractDescriptorTest
16+
class JsonDescriptorTest extends AbstractDescriptorTestCase
1717
{
1818
protected static function getDescriptor()
1919
{

Tests/Console/Descriptor/MarkdownDescriptorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Bundle\FrameworkBundle\Console\Descriptor\MarkdownDescriptor;
1515

16-
class MarkdownDescriptorTest extends AbstractDescriptorTest
16+
class MarkdownDescriptorTest extends AbstractDescriptorTestCase
1717
{
1818
protected static function getDescriptor()
1919
{

Tests/Console/Descriptor/TextDescriptorTest.php

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

18-
class TextDescriptorTest extends AbstractDescriptorTest
18+
class TextDescriptorTest extends AbstractDescriptorTestCase
1919
{
2020
private static $fileLinkFormatter = null;
2121

Tests/Console/Descriptor/XmlDescriptorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Bundle\FrameworkBundle\Console\Descriptor\XmlDescriptor;
1515

16-
class XmlDescriptorTest extends AbstractDescriptorTest
16+
class XmlDescriptorTest extends AbstractDescriptorTestCase
1717
{
1818
protected static function getDescriptor()
1919
{

Tests/DependencyInjection/Fixtures/php/workflow_not_valid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
3+
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;
44

55
$container->loadFromExtension('framework', [
66
'workflows' => [
77
'my_workflow' => [
88
'type' => 'state_machine',
99
'supports' => [
10-
FrameworkExtensionTest::class,
10+
FrameworkExtensionTestCase::class,
1111
],
1212
'places' => [
1313
'first',

Tests/DependencyInjection/Fixtures/php/workflow_with_guard_expression.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
3+
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;
44

55
$container->loadFromExtension('framework', [
66
'workflows' => [
77
'article' => [
88
'type' => 'workflow',
99
'supports' => [
10-
FrameworkExtensionTest::class,
10+
FrameworkExtensionTestCase::class,
1111
],
1212
'initial_marking' => ['draft'],
1313
'places' => [

Tests/DependencyInjection/Fixtures/php/workflow_with_multiple_transitions_with_same_name.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
3+
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;
44

55
$container->loadFromExtension('framework', [
66
'workflows' => [
77
'article' => [
88
'type' => 'workflow',
99
'supports' => [
10-
FrameworkExtensionTest::class,
10+
FrameworkExtensionTestCase::class,
1111
],
1212
'initial_marking' => ['draft'],
1313
'places' => [

Tests/DependencyInjection/Fixtures/php/workflow_with_no_events_to_dispatch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
3+
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;
44

55
$container->loadFromExtension('framework', [
66
'workflows' => [
@@ -11,7 +11,7 @@
1111
'property' => 'state',
1212
],
1313
'supports' => [
14-
FrameworkExtensionTest::class,
14+
FrameworkExtensionTestCase::class,
1515
],
1616
'events_to_dispatch' => [],
1717
'places' => [

Tests/DependencyInjection/Fixtures/php/workflow_with_specified_events_to_dispatch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest;
3+
use Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTestCase;
44

55
$container->loadFromExtension('framework', [
66
'workflows' => [
@@ -11,7 +11,7 @@
1111
'property' => 'state',
1212
],
1313
'supports' => [
14-
FrameworkExtensionTest::class,
14+
FrameworkExtensionTestCase::class,
1515
],
1616
'events_to_dispatch' => [
1717
'workflow.leave',

0 commit comments

Comments
 (0)