1
0
Fork 0

Add test covering the fix for #12107, closes #12108

pull/12110/head
Jordi Boggiano 2024-09-17 09:52:56 +02:00
parent 3e7b826904
commit 305b3413cf
No known key found for this signature in database
1 changed files with 12 additions and 0 deletions

View File

@ -74,4 +74,16 @@ class ApplicationTest extends TestCase
self::assertSame('', $output->fetch()); self::assertSame('', $output->fetch());
} }
/**
* @runInSeparateProcess
* @see https://github.com/composer/composer/issues/12107
*/
public function testProcessIsolationWorksMultipleTimes(): void
{
$application = new Application;
$application->add(new \Composer\Command\AboutCommand);
self::assertSame(0, $application->doRun(new ArrayInput(['command' => 'about']), new BufferedOutput()));
self::assertSame(0, $application->doRun(new ArrayInput(['command' => 'about']), new BufferedOutput()));
}
} }