From 520c3bdc6a270e27008e09ebdad1bd3454a4b961 Mon Sep 17 00:00:00 2001 From: "Oliver G. Mueller" Date: Mon, 18 Mar 2024 16:32:45 +0100 Subject: [PATCH] added testStoppedWithoutStart --- test/Subscriber/TestStopTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/Subscriber/TestStopTest.php b/test/Subscriber/TestStopTest.php index 349fdc7..db41e81 100644 --- a/test/Subscriber/TestStopTest.php +++ b/test/Subscriber/TestStopTest.php @@ -50,4 +50,10 @@ public function testStopped(): void self::assertEquals(10, $timing['duration']); self::assertEquals(1, $timing['times']); } + + public function testStoppedWithoutStart(): void + { + $reportTest = new TestStop($this->collector); + $reportTest->notify(self::fakeEventTestFinished()); + } }