Skip to content

Commit 157c0c0

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 f7bb940 commit 157c0c0

10 files changed

+10
-10
lines changed

Tests/Constraints/CollectionValidatorArrayObjectTest.php

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

1212
namespace Symfony\Component\Validator\Tests\Constraints;
1313

14-
class CollectionValidatorArrayObjectTest extends CollectionValidatorTest
14+
class CollectionValidatorArrayObjectTest extends CollectionValidatorTestCase
1515
{
1616
public function prepareTestData(array $contents)
1717
{

Tests/Constraints/CollectionValidatorArrayTest.php

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

1212
namespace Symfony\Component\Validator\Tests\Constraints;
1313

14-
class CollectionValidatorArrayTest extends CollectionValidatorTest
14+
class CollectionValidatorArrayTest extends CollectionValidatorTestCase
1515
{
1616
public function prepareTestData(array $contents)
1717
{

Tests/Constraints/CollectionValidatorCustomArrayObjectTest.php

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

1414
use Symfony\Component\Validator\Tests\Fixtures\CustomArrayObject;
1515

16-
class CollectionValidatorCustomArrayObjectTest extends CollectionValidatorTest
16+
class CollectionValidatorCustomArrayObjectTest extends CollectionValidatorTestCase
1717
{
1818
public function prepareTestData(array $contents)
1919
{

Tests/Constraints/CollectionValidatorTest.php renamed to Tests/Constraints/CollectionValidatorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Symfony\Component\Validator\Exception\UnexpectedValueException;
2121
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
2222

23-
abstract class CollectionValidatorTest extends ConstraintValidatorTestCase
23+
abstract class CollectionValidatorTestCase extends ConstraintValidatorTestCase
2424
{
2525
protected function createValidator()
2626
{

Tests/Constraints/CountValidatorArrayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Bernhard Schussek <[email protected]>
1616
*/
17-
class CountValidatorArrayTest extends CountValidatorTest
17+
class CountValidatorArrayTest extends CountValidatorTestCase
1818
{
1919
protected function createCollection(array $content)
2020
{

Tests/Constraints/CountValidatorCountableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* @author Bernhard Schussek <[email protected]>
1818
*/
19-
class CountValidatorCountableTest extends CountValidatorTest
19+
class CountValidatorCountableTest extends CountValidatorTestCase
2020
{
2121
protected function createCollection(array $content)
2222
{

Tests/Constraints/CountValidatorTest.php renamed to Tests/Constraints/CountValidatorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* @author Bernhard Schussek <[email protected]>
2222
*/
23-
abstract class CountValidatorTest extends ConstraintValidatorTestCase
23+
abstract class CountValidatorTestCase extends ConstraintValidatorTestCase
2424
{
2525
protected function createValidator()
2626
{

Tests/Constraints/FileValidatorObjectTest.php

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

1414
use Symfony\Component\HttpFoundation\File\File;
1515

16-
class FileValidatorObjectTest extends FileValidatorTest
16+
class FileValidatorObjectTest extends FileValidatorTestCase
1717
{
1818
protected function getFile($filename)
1919
{

Tests/Constraints/FileValidatorPathTest.php

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

1414
use Symfony\Component\Validator\Constraints\File;
1515

16-
class FileValidatorPathTest extends FileValidatorTest
16+
class FileValidatorPathTest extends FileValidatorTestCase
1717
{
1818
protected function getFile($filename)
1919
{

Tests/Constraints/FileValidatorTest.php renamed to Tests/Constraints/FileValidatorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Symfony\Component\Validator\Exception\UnexpectedValueException;
1919
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
2020

21-
abstract class FileValidatorTest extends ConstraintValidatorTestCase
21+
abstract class FileValidatorTestCase extends ConstraintValidatorTestCase
2222
{
2323
protected $path;
2424

0 commit comments

Comments
 (0)