Skip to content

Commit da0bc3e

Browse files
committed
patch deprecated class names for abstract test cases
1 parent 8b2bca6 commit da0bc3e

Some content is hidden

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

45 files changed

+87
-87
lines changed

tests/AbstractPHPModelGeneratorTest.php renamed to tests/AbstractPHPModelGeneratorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @package PHPModelGenerator\Tests\Objects
3131
*/
32-
abstract class AbstractPHPModelGeneratorTest extends TestCase
32+
abstract class AbstractPHPModelGeneratorTestCase extends TestCase
3333
{
3434
protected const EXTERNAL_JSON_DIRECTORIES = [];
3535

tests/Basic/AdditionalPropertiesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
use PHPModelGenerator\Exception\Object\AdditionalPropertiesException;
88
use PHPModelGenerator\Model\GeneratorConfiguration;
9-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
9+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
1010
use stdClass;
1111

1212
/**
1313
* Class AdditionalPropertiesTest
1414
*
1515
* @package PHPModelGenerator\Tests\Basic
1616
*/
17-
class AdditionalPropertiesTest extends AbstractPHPModelGeneratorTest
17+
class AdditionalPropertiesTest extends AbstractPHPModelGeneratorTestCase
1818
{
1919
/**
2020
* @dataProvider additionalPropertiesDataProvider

tests/Basic/BasicSchemaGenerationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
use PHPModelGenerator\ModelGenerator;
1717
use PHPModelGenerator\SchemaProcessor\Hook\SetterBeforeValidationHookInterface;
1818
use PHPModelGenerator\SchemaProcessor\PostProcessor\PostProcessor;
19-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
19+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
2020

2121
/**
2222
* Class BasicSchemaGenerationTest
2323
*
2424
* @package PHPModelGenerator\Tests\Basic
2525
*/
26-
class BasicSchemaGenerationTest extends AbstractPHPModelGeneratorTest
26+
class BasicSchemaGenerationTest extends AbstractPHPModelGeneratorTestCase
2727
{
2828
/**
2929
* @dataProvider implicitNullDataProvider

tests/Basic/DefaultValueTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
use PHPModelGenerator\Exception\RenderException;
99
use PHPModelGenerator\Exception\SchemaException;
1010
use PHPModelGenerator\Model\GeneratorConfiguration;
11-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
11+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
1212

1313
/**
1414
* Class DefaultValueTest
1515
*
1616
* @package PHPModelGenerator\Tests\Basic
1717
*/
18-
class DefaultValueTest extends AbstractPHPModelGeneratorTest
18+
class DefaultValueTest extends AbstractPHPModelGeneratorTestCase
1919
{
2020
/**
2121
* @dataProvider defaultValueForTypedPropertyDataProvider

tests/Basic/ErrorCollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPModelGenerator\Exception\String\MinLengthException;
99
use PHPModelGenerator\Exception\String\PatternException;
1010
use PHPModelGenerator\Model\GeneratorConfiguration;
11-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
11+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
1212
use PHPModelGenerator\Exception\ErrorRegistryException;
1313
use stdClass;
1414

@@ -17,7 +17,7 @@
1717
*
1818
* @package PHPModelGenerator\Tests\Basic
1919
*/
20-
class ErrorCollectionTest extends AbstractPHPModelGeneratorTest
20+
class ErrorCollectionTest extends AbstractPHPModelGeneratorTestCase
2121
{
2222
/**
2323
* @dataProvider validValuesForSinglePropertyDataProvider

tests/Basic/ExplicitNullTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
namespace PHPModelGenerator\Tests\Basic;
66

77
use PHPModelGenerator\Exception\ValidationException;
8-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
8+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
99

1010
/**
1111
* Class ExplicitNullTest
1212
*
1313
* @package PHPModelGenerator\Tests\Basic
1414
*/
15-
class ExplicitNullTest extends AbstractPHPModelGeneratorTest
15+
class ExplicitNullTest extends AbstractPHPModelGeneratorTestCase
1616
{
1717
public function testNullForOptionalValueWithoutImplicitNullThrowsAnException(): void
1818
{

tests/Basic/FilterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
use PHPModelGenerator\Model\GeneratorConfiguration;
1818
use PHPModelGenerator\PropertyProcessor\Filter\DateTimeFilter;
1919
use PHPModelGenerator\PropertyProcessor\Filter\TrimFilter;
20-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
20+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
2121

2222
/**
2323
* Class FilterTest
2424
*
2525
* @package PHPModelGenerator\Tests\Basic
2626
*/
27-
class FilterTest extends AbstractPHPModelGeneratorTest
27+
class FilterTest extends AbstractPHPModelGeneratorTestCase
2828
{
2929
public function testGetFilterReturnsAnExistingFilter(): void
3030
{

tests/Basic/IdenticalNestedSchemaTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
use PHPModelGenerator\Exception\RenderException;
99
use PHPModelGenerator\Exception\SchemaException;
1010
use PHPModelGenerator\Model\GeneratorConfiguration;
11-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
11+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
1212
use ReflectionClass;
1313

1414
/**
1515
* Class IdenticalNestedSchemaTest
1616
*
1717
* @package PHPModelGenerator\Tests\Basic
1818
*/
19-
class IdenticalNestedSchemaTest extends AbstractPHPModelGeneratorTest
19+
class IdenticalNestedSchemaTest extends AbstractPHPModelGeneratorTestCase
2020
{
2121
public function testIdenticalSchemaInSingleFileAreMappedToOneClass(): void
2222
{

tests/Basic/ObjectSizeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
namespace PHPModelGenerator\Tests\Basic;
66

77
use PHPModelGenerator\Exception\ValidationException;
8-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
8+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
99

1010
/**
1111
* Class ObjectSizeTest
1212
*
1313
* @package PHPModelGenerator\Tests\Basic
1414
*/
15-
class ObjectSizeTest extends AbstractPHPModelGeneratorTest
15+
class ObjectSizeTest extends AbstractPHPModelGeneratorTestCase
1616
{
1717
/**
1818
* @dataProvider validObjectPropertyAmountDataProvider

tests/Basic/PatternPropertiesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
use PHPModelGenerator\Exception\SchemaException;
88
use PHPModelGenerator\Model\GeneratorConfiguration;
9-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
9+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
1010
use stdClass;
1111

1212
/**
1313
* Class PatternPropertiesTest
1414
*
1515
* @package PHPModelGenerator\Tests\Basic
1616
*/
17-
class PatternPropertiesTest extends AbstractPHPModelGeneratorTest
17+
class PatternPropertiesTest extends AbstractPHPModelGeneratorTestCase
1818
{
1919
public function testInvalidPatternThrowsAnException(): void
2020
{

0 commit comments

Comments
 (0)