pest(['--tia']); $original = (string) file_get_contents($sandbox->path().'/src/Math.php'); $sandbox->write('src/Math.php', <<<'PHP' pest(['--tia']); expect($broken->isSuccessful())->toBeFalse(); $sandbox->write('src/Math.php', $original); $recovered = $sandbox->pest(['--tia']); expect($recovered->isSuccessful())->toBeTrue(tiaOutput($recovered)); expect(tiaOutput($recovered))->toMatch('/2 affected,\s*1 replayed/'); }); });