File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -671,6 +671,10 @@ final public function runBare(): void
671
671
$ e ->getMessage (),
672
672
);
673
673
} catch (AssertionError |AssertionFailedError $ e ) {
674
+ if (!$ this ->wasPrepared ) {
675
+ $ this ->wasPrepared = true ;
676
+ }
677
+
674
678
$ this ->status = TestStatus::failure ($ e ->getMessage ());
675
679
676
680
$ emitter ->testFailed (
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
https://github.com/sebastianbergmann/phpunit/issues/5493
3
- --XFAIL--
4
- https://github.com/sebastianbergmann/phpunit/issues/5493
5
3
--FILE--
6
4
<?php declare (strict_types=1 );
7
5
$ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
@@ -23,7 +21,7 @@ Time: %s, Memory: %s
23
21
There was 1 failure:
24
22
25
23
1 ) PHPUnit \TestFixture \Issue5493 \Issue5493Test::testOne
26
- Failed asserting that true is false .
24
+ Failed asserting that false is true .
27
25
28
26
%sIssue5493Test.php:19
29
27
You can’t perform that action at this time.
0 commit comments