From dfb7b870afaeb9267690c1771442c95f0f1b53c6 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Thu, 11 Jun 2026 10:12:41 +0100 Subject: [PATCH] fix: retry output expected string --- src/Concerns/Testable.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Concerns/Testable.php b/src/Concerns/Testable.php index a6f78d25..b978139c 100644 --- a/src/Concerns/Testable.php +++ b/src/Concerns/Testable.php @@ -435,6 +435,11 @@ trait Testable if ($hasOutputExpectation) { ob_clean(); + + Closure::bind(function (): void { + $this->outputExpectedString = null; + $this->outputExpectedRegex = null; + }, $this, TestCase::class)(); } $this->setUp();