File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ final public function hasUnexpectedOutput(): bool
568
568
return false ;
569
569
}
570
570
571
- if ($ this ->hasExpectationOnOutput ()) {
571
+ if ($ this ->expectsOutput ()) {
572
572
return false ;
573
573
}
574
574
@@ -598,9 +598,9 @@ final public function doesNotPerformAssertions(): bool
598
598
/**
599
599
* @internal This method is not covered by the backward compatibility promise for PHPUnit
600
600
*/
601
- final public function hasExpectationOnOutput (): bool
601
+ final public function expectsOutput (): bool
602
602
{
603
- return is_string ( $ this ->outputExpectedString ) || is_string ( $ this -> outputExpectedRegex ) || $ this ->outputRetrievedForAssertion ;
603
+ return $ this ->hasExpectationOnOutput ( ) || $ this ->outputRetrievedForAssertion ;
604
604
}
605
605
606
606
/**
@@ -2184,6 +2184,14 @@ private function isRegisteredFailure(Throwable $t): bool
2184
2184
return false ;
2185
2185
}
2186
2186
2187
+ /**
2188
+ * @internal This method is not covered by the backward compatibility promise for PHPUnit
2189
+ */
2190
+ private function hasExpectationOnOutput (): bool
2191
+ {
2192
+ return is_string ($ this ->outputExpectedString ) || is_string ($ this ->outputExpectedRegex );
2193
+ }
2194
+
2187
2195
/**
2188
2196
* Creates a test stub for the specified interface or class.
2189
2197
*
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ function __phpunit_run_isolated_test()
58
58
59
59
$output = '';
60
60
61
- if (!$test->hasExpectationOnOutput ()) {
61
+ if (!$test->expectsOutput ()) {
62
62
$output = $test -> output ();
63
63
}
64
64
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ function __phpunit_run_isolated_test()
59
59
60
60
$output = '';
61
61
62
- if (!$test->hasExpectationOnOutput ()) {
62
+ if (!$test->expectsOutput ()) {
63
63
$output = $test -> output ();
64
64
}
65
65
You can’t perform that action at this time.
0 commit comments