feat(tia): continues to work on poc

This commit is contained in:
nuno maduro
2026-04-16 08:19:44 -07:00
parent 494cc6e2a4
commit f09d6f2064
17 changed files with 135 additions and 436 deletions

View File

@ -15,13 +15,13 @@ use PHPUnit\Event\Test\PreparedSubscriber;
*
* @internal
*/
final class EnsureTiaCoverageIsRecorded implements PreparedSubscriber
final readonly class EnsureTiaCoverageIsRecorded implements PreparedSubscriber
{
public function __construct(private Recorder $recorder) {}
public function notify(Prepared $event): void
{
$recorder = Recorder::instance();
if (! $recorder->isActive()) {
if (! $this->recorder->isActive()) {
return;
}
@ -31,6 +31,6 @@ final class EnsureTiaCoverageIsRecorded implements PreparedSubscriber
return;
}
$recorder->beginTest($test->className(), $test->methodName(), $test->file());
$this->recorder->beginTest($test->className(), $test->methodName(), $test->file());
}
}