This commit is contained in:
nuno maduro
2026-04-28 22:12:42 +01:00
parent 00f8d56083
commit 466259646d

View File

@ -434,6 +434,10 @@ trait Testable
$tia = Container::getInstance()->get(Tia::class); $tia = Container::getInstance()->get(Tia::class);
$assertions = $tia->getCachedAssertions($this::class.'::'.$this->name()); $assertions = $tia->getCachedAssertions($this::class.'::'.$this->name());
if ($assertions === 0) {
$this->expectNotToPerformAssertions();
}
$this->addToAssertionCount($assertions); $this->addToAssertionCount($assertions);
return null; return null;