File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
tests/end-to-end/regression Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ https://github.com/sebastianbergmann/phpunit/issues/5993
3+ --FILE--
4+ <?php declare (strict_types=1 );
5+ $ _SERVER ['argv ' ][] = '--do-not-cache-result ' ;
6+ $ _SERVER ['argv ' ][] = '--no-configuration ' ;
7+ $ _SERVER ['argv ' ][] = '--debug ' ;
8+ $ _SERVER ['argv ' ][] = __DIR__ . '/5993/Issue5993Test.php ' ;
9+
10+ require_once __DIR__ . '/../../bootstrap.php ' ;
11+
12+ (new PHPUnit \TextUI \Application )->run ($ _SERVER ['argv ' ]);
13+ --EXPECTF --
14+ %A
Original file line number Diff line number Diff line change 1+ --TEST--
2+ PHPUnit process is blocked when there's a lot of output and a test with separate process
3+ --INI--
4+ error_reporting=-1
5+ display_errors=1
6+ display_startup_errors=1
7+ memory_limit=-1
8+ zend.assertions=1
9+ assert.exception=1
10+ --SKIPIF--
11+ <?php
12+ for ($ i = 0 ; $ i < 390 ; $ i ++) {
13+ trigger_error ("error $ i " );
14+ }
15+ ?>
16+ --FILE--
17+ <?php
18+
19+ use PHPUnit \Framework \Attributes \RunInSeparateProcess ;
20+ use PHPUnit \Framework \TestCase ;
21+
22+ final class Issue5993Test extends TestCase
23+ {
24+ #[RunInSeparateProcess]
25+ public function testOne (): void
26+ {
27+ $ this ->assertTrue (true );
28+ }
29+ }
You can’t perform that action at this time.
0 commit comments