destroy(); } } /** * Strip ANSI escapes so assertions are terminal-agnostic. */ function tiaOutput(Process $process): string { $output = $process->getOutput().$process->getErrorOutput(); return preg_replace('/\e\[[0-9;]*m/', '', $output) ?? $output; }