Skip to content

Commit a1f2614

Browse files
authored
Deprecate AllowMockObjectsWithoutExpectationsAttributeRector (#768)
1 parent aa61352 commit a1f2614

14 files changed

Lines changed: 14 additions & 606 deletions

‎config/sets/composer-based.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
use Rector\PHPUnit\PHPUnit120\Rector\CallLike\CreateStubOverCreateMockArgRector;
3636
use Rector\PHPUnit\PHPUnit120\Rector\Class_\AllowMockObjectsForDataProviderRector;
3737
use Rector\PHPUnit\PHPUnit120\Rector\Class_\AllowMockObjectsWhereParentClassRector;
38-
use Rector\PHPUnit\PHPUnit120\Rector\Class_\AllowMockObjectsWithoutExpectationsAttributeRector;
3938
use Rector\PHPUnit\PHPUnit120\Rector\Class_\AssertIsTypeMethodCallRector;
4039
use Rector\PHPUnit\PHPUnit120\Rector\Class_\PropertyCreateMockToCreateStubRector;
4140
use Rector\PHPUnit\PHPUnit120\Rector\Class_\RemoveOverrideFinalConstructTestCaseRector;
@@ -113,7 +112,6 @@
113112
// the AllowMockObjectsWithoutExpectations attribute exists since PHPUnit 12.5.2
114113
AllowMockObjectsWhereParentClassRector::class,
115114
AllowMockObjectsForDataProviderRector::class,
116-
AllowMockObjectsWithoutExpectationsAttributeRector::class,
117115

118116
// the upgrade rules of the per-version sets, each bound to the PHPUnit version
119117
// its target API is available from

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/AllowMockObjectsWithoutExpectationsAttributeRectorTest.php‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/Fixture/add_to_setup_when_no_expects.php.inc‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/Fixture/add_to_setup_when_no_expects_variable.php.inc‎

Lines changed: 0 additions & 50 deletions
This file was deleted.

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/Fixture/final_property_as_well.php.inc‎

Lines changed: 0 additions & 56 deletions
This file was deleted.

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/Fixture/skip_if_all_tests_methods_define_expectations.php.inc‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/Fixture/skip_if_mock_not_used_in_2_test_methods.php.inc‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/Fixture/skip_not_mock_object.php.inc‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/Fixture/skip_only_single_test.php.inc‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎rules-tests/PHPUnit120/Rector/Class_/AllowMockObjectsWithoutExpectationsAttributeRector/Fixture/some_class.php.inc‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)