diff --git a/src/TestLogger.php b/src/TestLogger.php index 94f7812..d4a05ca 100644 --- a/src/TestLogger.php +++ b/src/TestLogger.php @@ -49,7 +49,7 @@ public function getLogs(): array */ public function assert(string $message = ''): Assert { - return new Assert($this->logs, $message); + return new Assert(clone $this->logs, $message); } /** @@ -59,6 +59,6 @@ public function assert(string $message = ''): Assert */ public function filter(): Filter { - return new Filter($this->logs); + return new Filter(clone $this->logs); } }