diff --git a/tests/_files/SeparateProcessesTest.php b/tests/_files/SeparateProcessesTest.php new file mode 100644 index 00000000000..cbd5054fdd8 --- /dev/null +++ b/tests/_files/SeparateProcessesTest.php @@ -0,0 +1,29 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +use PHPUnit\Framework\TestCase; + +/** + * @runTestsInSeparateProcesses + */ +class SeparateProcessesTest extends TestCase +{ + public function testFoo(): void + { + $this->assertTrue(true); + exit(0); + } + + public function testBar(): void + { + $this->assertTrue(true); + $this->assertTrue(true); + exit(1); + } +} diff --git a/tests/end-to-end/separate-processes-test.phpt b/tests/end-to-end/separate-processes-test.phpt new file mode 100644 index 00000000000..b4349805d5f --- /dev/null +++ b/tests/end-to-end/separate-processes-test.phpt @@ -0,0 +1,17 @@ +--TEST-- +phpunit --no-configuration ../../_files/SeparateProcessesTest.php +--FILE-- +