Skip to content

Commit aec2271

Browse files
minor symfony#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#49233 | License | MIT | Doc PR | n/a Replaces symfony#49234 Using `Test` suffix is deprecated since PHPUnit 10 Spotted in * symfony#49233 Commits ------- cb3db96 [PHPUnit 10] Use `TestCase` suffix for abstract tests in `/Tests/`
1 parent fd2f680 commit aec2271

File tree

247 files changed

+287
-283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+287
-283
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
use Symfony\Component\Form\Exception\RuntimeException;
3636
use Symfony\Component\Form\Exception\UnexpectedTypeException;
3737
use Symfony\Component\Form\Forms;
38-
use Symfony\Component\Form\Tests\Extension\Core\Type\BaseTypeTest;
38+
use Symfony\Component\Form\Tests\Extension\Core\Type\BaseTypeTestCase;
3939
use Symfony\Component\Form\Tests\Extension\Core\Type\FormTypeTest;
4040
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
4141
use Symfony\Component\OptionsResolver\Exception\MissingOptionsException;
4242

43-
class EntityTypeTest extends BaseTypeTest
43+
class EntityTypeTest extends BaseTypeTestCase
4444
{
4545
public const TESTED_TYPE = 'Symfony\Bridge\Doctrine\Form\Type\EntityType';
4646

src/Symfony/Bridge/Doctrine/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"symfony/cache": "^5.4|^6.0",
3131
"symfony/config": "^4.4|^5.0|^6.0",
3232
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
33-
"symfony/form": "^5.4.9|^6.0.9",
33+
"symfony/form": "^5.4.21|^6.2.7",
3434
"symfony/http-kernel": "^5.0|^6.0",
3535
"symfony/messenger": "^4.4|^5.0|^6.0",
3636
"symfony/doctrine-messenger": "^5.1|^6.0",
@@ -57,7 +57,7 @@
5757
"phpunit/phpunit": "<5.4.3",
5858
"symfony/cache": "<5.4",
5959
"symfony/dependency-injection": "<4.4",
60-
"symfony/form": "<5.1",
60+
"symfony/form": "<5.4.21|>=6,<6.2.7",
6161
"symfony/http-kernel": "<5",
6262
"symfony/messenger": "<4.4",
6363
"symfony/property-info": "<5",

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3HorizontalLayoutTest.php renamed to src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3HorizontalLayoutTestCase.php

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

1212
namespace Symfony\Bridge\Twig\Tests\Extension;
1313

14-
abstract class AbstractBootstrap3HorizontalLayoutTest extends AbstractBootstrap3LayoutTest
14+
abstract class AbstractBootstrap3HorizontalLayoutTestCase extends AbstractBootstrap3LayoutTestCase
1515
{
1616
public function testLabelOnForm()
1717
{

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTest.php renamed to src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
use Symfony\Component\Form\Extension\Core\Type\PercentType;
1515
use Symfony\Component\Form\FormError;
16-
use Symfony\Component\Form\Tests\AbstractLayoutTest;
16+
use Symfony\Component\Form\Tests\AbstractLayoutTestCase;
1717

18-
abstract class AbstractBootstrap3LayoutTest extends AbstractLayoutTest
18+
abstract class AbstractBootstrap3LayoutTestCase extends AbstractLayoutTestCase
1919
{
2020
public function testLabelOnForm()
2121
{

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4HorizontalLayoutTest.php renamed to src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4HorizontalLayoutTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @author Hidde Wieringa <[email protected]>
2020
*/
21-
abstract class AbstractBootstrap4HorizontalLayoutTest extends AbstractBootstrap4LayoutTest
21+
abstract class AbstractBootstrap4HorizontalLayoutTestCase extends AbstractBootstrap4LayoutTestCase
2222
{
2323
public function testRow()
2424
{

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTest.php renamed to src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4LayoutTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
* @author Hidde Wieringa <[email protected]>
3030
*/
31-
abstract class AbstractBootstrap4LayoutTest extends AbstractBootstrap3LayoutTest
31+
abstract class AbstractBootstrap4LayoutTestCase extends AbstractBootstrap3LayoutTestCase
3232
{
3333
public function testRow()
3434
{

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5HorizontalLayoutTest.php renamed to src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5HorizontalLayoutTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @author Romain Monteil <[email protected]>
2626
*/
27-
abstract class AbstractBootstrap5HorizontalLayoutTest extends AbstractBootstrap5LayoutTest
27+
abstract class AbstractBootstrap5HorizontalLayoutTestCase extends AbstractBootstrap5LayoutTestCase
2828
{
2929
public function testRow()
3030
{

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTest.php renamed to src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap5LayoutTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
* @author Romain Monteil <[email protected]>
3838
*/
39-
abstract class AbstractBootstrap5LayoutTest extends AbstractBootstrap4LayoutTest
39+
abstract class AbstractBootstrap5LayoutTestCase extends AbstractBootstrap4LayoutTestCase
4040
{
4141
public function testRow()
4242
{

src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionBootstrap3HorizontalLayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Twig\Environment;
2222
use Twig\Loader\FilesystemLoader;
2323

24-
class FormExtensionBootstrap3HorizontalLayoutTest extends AbstractBootstrap3HorizontalLayoutTest
24+
class FormExtensionBootstrap3HorizontalLayoutTest extends AbstractBootstrap3HorizontalLayoutTestCase
2525
{
2626
use RuntimeLoaderProvider;
2727

src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionBootstrap3LayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Twig\Environment;
2222
use Twig\Loader\FilesystemLoader;
2323

24-
class FormExtensionBootstrap3LayoutTest extends AbstractBootstrap3LayoutTest
24+
class FormExtensionBootstrap3LayoutTest extends AbstractBootstrap3LayoutTestCase
2525
{
2626
use RuntimeLoaderProvider;
2727

0 commit comments

Comments
 (0)