File tree 6 files changed +24
-0
lines changed
6 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 409
409
<code >mockObjectForAbstractClass</code >
410
410
<code >mockObjectForTrait</code >
411
411
<code >objectForTrait</code >
412
+ <code >registerMockObjectsFromTestArguments</code >
413
+ <code >registerMockObjectsFromTestArguments</code >
412
414
</DeprecatedMethod >
413
415
<MissingThrowsDocblock >
414
416
<code >getMethod</code >
425
427
<ArgumentTypeCoercion >
426
428
<code ><![CDATA[ $test->output()]]> </code >
427
429
</ArgumentTypeCoercion >
430
+ <DeprecatedMethod >
431
+ <code >registerMockObjectsFromTestArgumentsRecursively</code >
432
+ <code >registerMockObjectsFromTestArgumentsRecursively</code >
433
+ </DeprecatedMethod >
428
434
<InvalidArgument >
429
435
<code >$var</code >
430
436
</InvalidArgument >
834
840
<code >hasCacheResultFile</code >
835
841
<code >hasCacheResultFile</code >
836
842
<code >hasCoverageCacheDirectory</code >
843
+ <code >registerMockObjectsFromTestArgumentsRecursively</code >
837
844
</DeprecatedMethod >
838
845
<MissingThrowsDocblock >
839
846
<code >baseline</code >
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes of the PHPUnit 10.5 release series are documented in this fi
4
4
5
5
## [ 10.5.3] - 2023-MM-DD
6
6
7
+ ### Deprecated
8
+
9
+ * ` registerMockObjectsFromTestArgumentsRecursively ` attribute on the ` <phpunit> ` element of the XML configuration file
10
+ * ` PHPUnit\TextUI\Configuration\Configuration::registerMockObjectsFromTestArgumentsRecursively() `
11
+
7
12
### Fixed
8
13
9
14
* [ #5614 ] ( https://github.com/sebastianbergmann/phpunit/issues/5614 ) : Infinite recursion when data provider provides recursive array
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ This functionality is currently [soft-deprecated](https://phpunit.de/backward-co
74
74
| | ` PHPUnit\TextUI\Configuration\Configuration::cliArgument() ` | 10.4.0 | ` PHPUnit\TextUI\Configuration\Configuration::cliArguments()[0] ` |
75
75
| | ` PHPUnit\TextUI\Configuration\Configuration::hasCliArgument() ` | 10.4.0 | ` PHPUnit\TextUI\Configuration\Configuration::hasCliArguments() ` |
76
76
| | ` PHPUnit\Framework\Constraint\Constraint::exporter() ` | 10.4.0 | |
77
+ | | ` PHPUnit\TextUI\Configuration\Configuration::registerMockObjectsFromTestArgumentsRecursively() ` | 10.5.3 | |
77
78
78
79
## Hard Deprecations
79
80
Original file line number Diff line number Diff line change @@ -601,6 +601,8 @@ final public function expectsOutput(): bool
601
601
602
602
/**
603
603
* @internal This method is not covered by the backward compatibility promise for PHPUnit
604
+ *
605
+ * @deprecated
604
606
*/
605
607
final public function registerMockObjectsFromTestArgumentsRecursively (): void
606
608
{
@@ -1827,6 +1829,9 @@ private function shouldInvocationMockerBeReset(MockObject $mock): bool
1827
1829
return !in_array ($ mock , $ enumerator ->enumerate ($ this ->testResult ), true );
1828
1830
}
1829
1831
1832
+ /**
1833
+ * @deprecated
1834
+ */
1830
1835
private function registerMockObjectsFromTestArguments (array $ testArguments , Context $ context = new Context ): void
1831
1836
{
1832
1837
if ($ this ->registerMockObjectsFromTestArgumentsRecursively ) {
Original file line number Diff line number Diff line change @@ -926,6 +926,9 @@ public function requireCoverageMetadata(): bool
926
926
return $ this ->requireCoverageMetadata ;
927
927
}
928
928
929
+ /**
930
+ * @deprecated
931
+ */
929
932
public function registerMockObjectsFromTestArgumentsRecursively (): bool
930
933
{
931
934
return $ this ->registerMockObjectsFromTestArgumentsRecursively ;
Original file line number Diff line number Diff line change @@ -453,6 +453,9 @@ public function backupStaticProperties(): bool
453
453
return $ this ->backupStaticProperties ;
454
454
}
455
455
456
+ /**
457
+ * @deprecated
458
+ */
456
459
public function registerMockObjectsFromTestArgumentsRecursively (): bool
457
460
{
458
461
return $ this ->registerMockObjectsFromTestArgumentsRecursively ;
You can’t perform that action at this time.
0 commit comments