'-p',
$processClass,
]);
$process->
mustRun();
$this->
assertEquals($expectedMemoryLimit,
trim($process->
getOutput()));
} public static function subprocessProvider(): \Generator
{ yield 'Process does ignore dynamic memory_limit' =>
[ 'Process',
self::
getRandomMemoryLimit(),
self::
getCurrentMemoryLimit(),
];
yield 'PhpSubprocess does not ignore dynamic memory_limit' =>
[ 'PhpSubprocess',
self::
getRandomMemoryLimit(),
self::
getRandomMemoryLimit(),
];
} private static function getCurrentMemoryLimit(): string
{