Skip to content

Commit

Permalink
Extend tests to cover mutants
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kolb committed May 6, 2024
1 parent 9390595 commit f34b09a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Clock/FrozenClockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
#[CoversClass(FrozenClock::class)]
final class FrozenClockTest extends TestCase
{
#[Test]
public function construction_works(): void
{
// -- Arrange
$moment = Moment::fromStringInTimeZone('2024-05-06 08:00:00', new \DateTimeZone('Europe/Berlin'));

// -- Act
$clock = new FrozenClock($moment);

// -- Assert
self::assertSame($moment, $clock->now());
}

#[Test]
public function freeze_works(): void
{
Expand Down

0 comments on commit f34b09a

Please sign in to comment.