File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ All notable changes of the PHPUnit 10.3 release series are documented in this fi
8
8
9
9
* The child processes used for process isolation now use temporary files to communicate their result to the parent process
10
10
11
+ ### Fixed
12
+
13
+ * [ #5493 ] ( https://github.com/sebastianbergmann/phpunit/issues/5493 ) : Assertion failures during setup swallows test outcome
14
+
11
15
## [ 10.3.4] - 2023-09-12
12
16
13
17
### 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 ' ;
You can’t perform that action at this time.
0 commit comments