File tree 2 files changed +48
-0
lines changed
tests/end-to-end/regression
2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ https://github.com/sebastianbergmann/phpunit/issues/5771
3
+ --FILE--
4
+ <?php declare (strict_types=1 );
5
+ $ _SERVER ['argv ' ][] = '--no-configuration ' ;
6
+ $ _SERVER ['argv ' ][] = __DIR__ . '/5771/Issue5771Test.php ' ;
7
+
8
+ require_once __DIR__ . '/../../bootstrap.php ' ;
9
+
10
+ (new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
11
+ --EXPECTF --
12
+ PHPUnit %s by Sebastian Bergmann and contributors.
13
+
14
+ Runtime: %s
15
+
16
+ E 1 / 1 (100 %)
17
+
18
+ Time: %s, Memory: %s
19
+
20
+ There was 1 error:
21
+
22
+ 1 ) PHPUnit \TestFixture \Issue5771 \Issue5771Test::test
23
+ Test was run in child process and ended unexpectedly
24
+
25
+ ERRORS !
26
+ Tests: 1 , Assertions: 0 , Errors: 1.
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types=1 );
2
+ /*
3
+ * This file is part of PHPUnit.
4
+ *
5
+ * (c) Sebastian Bergmann <[email protected] >
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
10
+ namespace PHPUnit \TestFixture \Issue5771 ;
11
+
12
+ use PHPUnit \Framework \Attributes \RunInSeparateProcess ;
13
+ use PHPUnit \Framework \TestCase ;
14
+
15
+ final class Issue5771Test extends TestCase
16
+ {
17
+ #[RunInSeparateProcess]
18
+ public function test (): void
19
+ {
20
+ exit ;
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments