From 466259646d5a4b3927e7b5142f56c2a8642cedc2 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Tue, 28 Apr 2026 22:12:42 +0100 Subject: [PATCH] wip --- src/Concerns/Testable.php | 4 ++++ 1 file changed, 4 insertions(+) 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;