File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -3,26 +3,21 @@ https://github.com/sebastianbergmann/phpunit/issues/5771
3
3
--FILE--
4
4
<?php declare (strict_types=1 );
5
5
$ _SERVER ['argv ' ][] = '--no-configuration ' ;
6
+ $ _SERVER ['argv ' ][] = '--no-output ' ;
6
7
$ _SERVER ['argv ' ][] = __DIR__ . '/5771/Issue5771Test.php ' ;
7
8
$ _SERVER ['argv ' ][] = '--log-junit ' ;
8
- $ _SERVER ['argv ' ][] = tempnam ( sys_get_temp_dir (), __FILE__ ) ;
9
+ $ _SERVER ['argv ' ][] = ' php://stdout ' ;
9
10
10
11
require_once __DIR__ . '/../../bootstrap.php ' ;
11
12
12
13
(new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
13
14
--EXPECTF --
14
- PHPUnit %s by Sebastian Bergmann and contributors.
15
-
16
- Runtime: %s
17
-
18
- E 1 / 1 (100 %)
19
-
20
- Time: %s, Memory: %s
21
-
22
- There was 1 error:
23
-
24
- 1 ) PHPUnit \TestFixture \Issue5771 \Issue5771Test::test
25
- Test was run in child process and ended unexpectedly
26
-
27
- ERRORS !
28
- Tests: 1 , Assertions: 0 , Errors: 1.
15
+ <? xml version="1.0 " encoding="UTF -8 "?>
16
+ <testsuites>
17
+ <testsuite name="PHPUnit\TestFixture\Issue5771\Issue5771Test" file="%sIssue5771Test.php" tests="1" assertions="0" errors="1" failures="0" skipped="0" time="%s">
18
+ <testcase name="testOne" file="%sIssue5771Test.php" line="18" class="PHPUnit\TestFixture\Issue5771\Issue5771Test" classname="PHPUnit.TestFixture.Issue5771.Issue5771Test" assertions="0" time="%s">
19
+ <error type="PHPUnit\Framework\AssertionFailedError">PHPUnit\TestFixture\Issue5771\Issue5771Test::testOne
20
+ Test was run in child process and ended unexpectedly</error>
21
+ </testcase>
22
+ </testsuite>
23
+ </testsuites>
Original file line number Diff line number Diff line change 15
15
final class Issue5771Test extends TestCase
16
16
{
17
17
#[RunInSeparateProcess]
18
- public function test (): void
18
+ public function testOne (): void
19
19
{
20
20
exit ;
21
21
}
You can’t perform that action at this time.
0 commit comments