diff --git a/tests/unit/Event/Value/Telemetry/GarbageCollectorStatusTest.php b/tests/unit/Event/Value/Telemetry/GarbageCollectorStatusTest.php index d962c717d65..436f24ff7c8 100644 --- a/tests/unit/Event/Value/Telemetry/GarbageCollectorStatusTest.php +++ b/tests/unit/Event/Value/Telemetry/GarbageCollectorStatusTest.php @@ -88,6 +88,34 @@ public function testMayNotHaveExtendedInformation(): void $this->assertFalse($this->withoutDetails()->hasExtendedInformation()); } + public function testMayNotHaveApplicationTime(): void + { + $this->expectException(RuntimeException::class); + + $this->withoutDetails()->applicationTime(); + } + + public function testMayNotHaveCollectorTime(): void + { + $this->expectException(RuntimeException::class); + + $this->withoutDetails()->collectorTime(); + } + + public function testMayNotHaveDestructorTime(): void + { + $this->expectException(RuntimeException::class); + + $this->withoutDetails()->destructorTime(); + } + + public function testMayNotHaveFreeTime(): void + { + $this->expectException(RuntimeException::class); + + $this->withoutDetails()->freeTime(); + } + public function testMayNotHaveRunning(): void { $this->expectException(RuntimeException::class);