Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 15, 2024
1 parent 2033162 commit a6319b7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/unit/Event/Value/Telemetry/GarbageCollectorStatusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a6319b7

Please sign in to comment.