Skip to content

Commit

Permalink
Simplify coverage information
Browse files Browse the repository at this point in the history
  • Loading branch information
lcobucci committed Aug 27, 2020
1 parent 7bd4ab6 commit 7ab1633
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
11 changes: 6 additions & 5 deletions test/FrozenClockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
use DateTimeImmutable;
use PHPUnit\Framework\TestCase;

/** @coversDefaultClass \Lcobucci\Clock\FrozenClock */
final class FrozenClockTest extends TestCase
{
/**
* @test
*
* @covers \Lcobucci\Clock\FrozenClock::__construct
* @covers \Lcobucci\Clock\FrozenClock::now
* @covers ::__construct
* @covers ::now
*/
public function nowShouldReturnAlwaysTheSameObject(): void
{
Expand All @@ -26,7 +27,7 @@ public function nowShouldReturnAlwaysTheSameObject(): void
/**
* @test
*
* @covers \Lcobucci\Clock\FrozenClock::setTo
* @covers ::setTo
*
* @uses \Lcobucci\Clock\FrozenClock::__construct()
* @uses \Lcobucci\Clock\FrozenClock::now
Expand All @@ -46,8 +47,8 @@ public function nowSetChangesTheObject(): void
/**
* @test
*
* @covers \Lcobucci\Clock\FrozenClock::fromUTC
* @covers \Lcobucci\Clock\FrozenClock::__construct
* @covers ::fromUTC
* @covers ::__construct
*
* @uses \Lcobucci\Clock\FrozenClock::now
*/
Expand Down
15 changes: 8 additions & 7 deletions test/SystemClockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@

use function date_default_timezone_get;

/** @coversDefaultClass \Lcobucci\Clock\SystemClock */
final class SystemClockTest extends TestCase
{
/**
* @test
*
* @covers \Lcobucci\Clock\SystemClock::__construct
* @covers ::__construct
*/
public function constructShouldUseSystemDefaultTimezoneIfNoneWasProvided(): void
{
Expand All @@ -24,8 +25,8 @@ public function constructShouldUseSystemDefaultTimezoneIfNoneWasProvided(): void
/**
* @test
*
* @covers \Lcobucci\Clock\SystemClock::__construct
* @covers \Lcobucci\Clock\SystemClock::now
* @covers ::__construct
* @covers ::now
*/
public function nowShouldRespectTheProvidedTimezone(): void
{
Expand All @@ -44,8 +45,8 @@ public function nowShouldRespectTheProvidedTimezone(): void
/**
* @test
*
* @covers \Lcobucci\Clock\SystemClock::fromUTC
* @covers \Lcobucci\Clock\SystemClock::__construct
* @covers ::fromUTC
* @covers ::__construct
*
* @uses \Lcobucci\Clock\SystemClock::now
*/
Expand All @@ -60,8 +61,8 @@ public function fromUTCCreatesAnInstanceUsingUTCAsTimezone(): void
/**
* @test
*
* @covers \Lcobucci\Clock\SystemClock::fromSystemTimezone
* @covers \Lcobucci\Clock\SystemClock::__construct
* @covers ::fromSystemTimezone
* @covers ::__construct
*
* @uses \Lcobucci\Clock\SystemClock::now
*/
Expand Down

0 comments on commit 7ab1633

Please sign in to comment.