mirror of
https://github.com/beste/clock.git
synced 2026-10-17 19:27:35 +00:00
Update to PHPUnit 12
This commit is contained in:
@@ -5,12 +5,14 @@ declare(strict_types=1);
|
||||
namespace Beste\Clock\Tests;
|
||||
|
||||
use Beste\Clock\UTCClock;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversDefaultClass \Beste\Clock\UTCClock
|
||||
*/
|
||||
#[CoversClass(UTCClock::class)]
|
||||
final class UTCClockTest extends TestCase
|
||||
{
|
||||
private string $defaultTimeZone;
|
||||
@@ -25,13 +27,7 @@ final class UTCClockTest extends TestCase
|
||||
date_default_timezone_set($this->defaultTimeZone);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*
|
||||
* @covers ::__construct
|
||||
* @covers ::create
|
||||
* @covers ::now
|
||||
*/
|
||||
#[Test]
|
||||
public function itUsesUTCRegardlessOfTheSystemTimeZone(): void
|
||||
{
|
||||
date_default_timezone_set('Europe/Berlin');
|
||||
|
||||
Reference in New Issue
Block a user