diff --git a/src/Concerns/Testable.php b/src/Concerns/Testable.php index 15a7bc67..aa93c834 100644 --- a/src/Concerns/Testable.php +++ b/src/Concerns/Testable.php @@ -434,6 +434,10 @@ trait Testable $tia = Container::getInstance()->get(Tia::class); $assertions = $tia->getCachedAssertions($this::class.'::'.$this->name()); + if ($assertions === 0) { + $this->expectNotToPerformAssertions(); + } + $this->addToAssertionCount($assertions); return null;