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
{

tests/Basic/PropertyDependencyTest.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\Model\GeneratorConfiguration;
8-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
8+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
99

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

tests/Basic/PropertyNamesTest.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\Model\GeneratorConfiguration;
8-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
8+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
99

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

tests/Basic/SchemaDependencyTest.php

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

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

1111
/**
1212
* Class SchemaDependencyTest
1313
*
1414
* @package PHPModelGenerator\Tests\Basic
1515
*/
16-
class SchemaDependencyTest extends AbstractPHPModelGeneratorTest
16+
class SchemaDependencyTest extends AbstractPHPModelGeneratorTestCase
1717
{
1818
/**
1919
* @dataProvider validSchemaDependencyDataProvider

tests/Basic/SchemaHookTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
use PHPModelGenerator\SchemaProcessor\Hook\SetterAfterValidationHookInterface;
2020
use PHPModelGenerator\SchemaProcessor\Hook\SetterBeforeValidationHookInterface;
2121
use PHPModelGenerator\SchemaProcessor\PostProcessor\PostProcessor;
22-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
22+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
2323

2424
/**
2525
* Class SchemaHookTest
2626
*
2727
* @package PHPModelGenerator\Tests\Basic
2828
*/
29-
class SchemaHookTest extends AbstractPHPModelGeneratorTest
29+
class SchemaHookTest extends AbstractPHPModelGeneratorTestCase
3030
{
3131
public function testConstructorBeforeValidationHookIsResolved(): void
3232
{

tests/ComposedValue/ComposedAllOfTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use PHPModelGenerator\Exception\SchemaException;
1010
use PHPModelGenerator\Exception\ValidationException;
1111
use PHPModelGenerator\Model\GeneratorConfiguration;
12-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
12+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
1313
use ReflectionMethod;
1414
use stdClass;
1515

@@ -18,7 +18,7 @@
1818
*
1919
* @package PHPModelGenerator\Tests\ComposedValue
2020
*/
21-
class ComposedAllOfTest extends AbstractPHPModelGeneratorTest
21+
class ComposedAllOfTest extends AbstractPHPModelGeneratorTestCase
2222
{
2323
/**
2424
* @dataProvider validEmptyAllOfDataProvider

tests/ComposedValue/ComposedAnyOfTest.php

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

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

tests/ComposedValue/ComposedIfTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
use PHPModelGenerator\Exception\RenderException;
1010
use PHPModelGenerator\Exception\SchemaException;
1111
use PHPModelGenerator\Model\GeneratorConfiguration;
12-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
12+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
1313

1414
/**
1515
* Class ComposedIfTest
1616
*
1717
* @package PHPModelGenerator\Tests\ComposedValue
1818
*/
19-
class ComposedIfTest extends AbstractPHPModelGeneratorTest
19+
class ComposedIfTest extends AbstractPHPModelGeneratorTestCase
2020
{
2121
/**
2222
* @dataProvider conditionalKeywordsDataProvider

tests/ComposedValue/ComposedNotTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use PHPModelGenerator\Exception\RenderException;
1111
use PHPModelGenerator\Exception\SchemaException;
1212
use PHPModelGenerator\Model\GeneratorConfiguration;
13-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
13+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
1414
use PHPModelGenerator\Exception\ValidationException;
1515
use stdClass;
1616

@@ -21,7 +21,7 @@
2121
*
2222
* @package PHPModelGenerator\Tests\ComposedValue
2323
*/
24-
class ComposedNotTest extends AbstractPHPModelGeneratorTest
24+
class ComposedNotTest extends AbstractPHPModelGeneratorTestCase
2525
{
2626
/**
2727
* @dataProvider emptyNotDataProvider

tests/ComposedValue/ComposedOneOfTest.php

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

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

tests/Issues/AbstractIssueTest.php renamed to tests/Issues/AbstractIssueTestCase.php

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

55
namespace PHPModelGenerator\Tests\Issues;
66

7-
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTest;
7+
use PHPModelGenerator\Tests\AbstractPHPModelGeneratorTestCase;
88

9-
abstract class AbstractIssueTest extends AbstractPHPModelGeneratorTest
9+
abstract class AbstractIssueTestCase extends AbstractPHPModelGeneratorTestCase
1010
{
1111
protected function getSchemaFilePath(string $file): string
1212
{

tests/Issues/Issue/Issue70Test.php

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

77
use PHPModelGenerator\Filter\TransformingFilterInterface;
88
use PHPModelGenerator\Model\GeneratorConfiguration;
9-
use PHPModelGenerator\Tests\Issues\AbstractIssueTest;
9+
use PHPModelGenerator\Tests\Issues\AbstractIssueTestCase;
1010

11-
class Issue70Test extends AbstractIssueTest
11+
class Issue70Test extends AbstractIssueTestCase
1212
{
1313
/**
1414
* @dataProvider validInputDataProvider

tests/Issues/Issue/Issue76Test.php

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

77
use PHPModelGenerator\Model\GeneratorConfiguration;
8-
use PHPModelGenerator\Tests\Issues\AbstractIssueTest;
8+
use PHPModelGenerator\Tests\Issues\AbstractIssueTestCase;
99

10-
class Issue76Test extends AbstractIssueTest
10+
class Issue76Test extends AbstractIssueTestCase
1111
{
1212
public function testSerializeWithImplicitNullEnabledIncludesAllFields(): void
1313
{

tests/Issues/Issue/Issue77Test.php

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

77
use PHPModelGenerator\Model\GeneratorConfiguration;
8-
use PHPModelGenerator\Tests\Issues\AbstractIssueTest;
8+
use PHPModelGenerator\Tests\Issues\AbstractIssueTestCase;
99

10-
class Issue77Test extends AbstractIssueTest
10+
class Issue77Test extends AbstractIssueTestCase
1111
{
1212
public function testCompositionValidatorOnPropertyGeneratesNoDynamicProperty(): void
1313
{

tests/Issues/Issue/Issue79Test.php

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

77
use PHPModelGenerator\Exception\ErrorRegistryException;
88
use PHPModelGenerator\Model\GeneratorConfiguration;
9-
use PHPModelGenerator\Tests\Issues\AbstractIssueTest;
9+
use PHPModelGenerator\Tests\Issues\AbstractIssueTestCase;
1010

11-
class Issue79Test extends AbstractIssueTest
11+
class Issue79Test extends AbstractIssueTestCase
1212
{
1313
public function testCombinedReferenceAndObjectDefinition(): void
1414
{

tests/Issues/Regression/RegressionIssue65Test.php

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

77
use PHPModelGenerator\Exception\ComposedValue\AllOfException;
8-
use PHPModelGenerator\Tests\Issues\AbstractIssueTest;
8+
use PHPModelGenerator\Tests\Issues\AbstractIssueTestCase;
99

10-
class RegressionIssue65Test extends AbstractIssueTest
10+
class RegressionIssue65Test extends AbstractIssueTestCase
1111
{
1212
public function testValidInput(): void
1313
{

0 commit comments

Comments
 (0)