Skip to content

Commit a6319b7

Browse files
Add tests
1 parent 2033162 commit a6319b7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/unit/Event/Value/Telemetry/GarbageCollectorStatusTest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,34 @@ public function testMayNotHaveExtendedInformation(): void
8888
$this->assertFalse($this->withoutDetails()->hasExtendedInformation());
8989
}
9090

91+
public function testMayNotHaveApplicationTime(): void
92+
{
93+
$this->expectException(RuntimeException::class);
94+
95+
$this->withoutDetails()->applicationTime();
96+
}
97+
98+
public function testMayNotHaveCollectorTime(): void
99+
{
100+
$this->expectException(RuntimeException::class);
101+
102+
$this->withoutDetails()->collectorTime();
103+
}
104+
105+
public function testMayNotHaveDestructorTime(): void
106+
{
107+
$this->expectException(RuntimeException::class);
108+
109+
$this->withoutDetails()->destructorTime();
110+
}
111+
112+
public function testMayNotHaveFreeTime(): void
113+
{
114+
$this->expectException(RuntimeException::class);
115+
116+
$this->withoutDetails()->freeTime();
117+
}
118+
91119
public function testMayNotHaveRunning(): void
92120
{
93121
$this->expectException(RuntimeException::class);

0 commit comments

Comments
 (0)