'DefaultPrinter', 'COLLISION_IGNORE_DURATION' => 'true'], ); $process->run(); expect($process->getExitCode())->toBe(0); return removeAnsiEscapeSequences($process->getOutput()); }; $snapshot = function ($name) { $testsPath = dirname(__DIR__); return file_get_contents(implode(DIRECTORY_SEPARATOR, [ $testsPath, '.snapshots', "$name.txt", ])); }; test('todo', function () use ($run, $snapshot) { expect($run('--todos', false))->toContain($snapshot('todo')); })->skipOnWindows(); test('todo in parallel', function () use ($run, $snapshot) { expect($run('--todos', true))->toContain($snapshot('todo')); })->skipOnWindows();