getRandomMemoryLimit example

'-p', $processClass,
        ]);

        $process->mustRun();
        $this->assertEquals($expectedMemoryLimittrim($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
    {
Home | Imprint | This part of the site doesn't use cookies.