pest(['--tia']); $sandbox->write('src/Math.php', <<<'PHP' pest(['--tia']); expect($process->isSuccessful())->toBeTrue(tiaOutput($process)); expect(tiaOutput($process))->toMatch('/2 affected,\s*1 replayed/'); }); }); test('adding a new test file runs the new test + replays the rest', function () { tiaScenario(function (Sandbox $sandbox) { $sandbox->pest(['--tia']); $sandbox->write('tests/ExtraTest.php', <<<'PHP' toBeTrue(); }); PHP); $process = $sandbox->pest(['--tia']); expect($process->isSuccessful())->toBeTrue(tiaOutput($process)); expect(tiaOutput($process))->toMatch('/1 affected,\s*3 replayed/'); }); });