Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Turn on output buffering
ob_start(callable $callback nullint $chunk_size 0int $flags PHP_OUTPUT_HANDLER_STDFLAGS): bool
$app->register('phpinfo')

    ->
setCode(function (InputInterface $inputOutputInterface $output): int {

        
ob_start();

        
phpinfo();

        
$phpinfo ob_get_clean();

        
$output->write($phpinfo);
    {

        
parent::setUp();



        
ob_start();

        
$this->fakeContext = new Context('abc'time(), 'abc''abc');

    }
    {

        
parent::setUp();



        
ob_start();

        
$this->fakeContext = new Context('abc'time(), 'abc''abc');

    }
    protected function setUp(): void

    
{

        
ob_start();

        
Server::start();

        
$this->runtime = new LambdaRuntime('localhost:8126''phpunit');

    }