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\SystemClock;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\Test;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @coversDefaultClass \Beste\Clock\SystemClock
|
||||
*/
|
||||
#[CoversClass(SystemClock::class)]
|
||||
final class SystemClockTest extends TestCase
|
||||
{
|
||||
private string $defaultTimeZone;
|
||||
@@ -25,13 +27,7 @@ final class SystemClockTest extends TestCase
|
||||
date_default_timezone_set($this->defaultTimeZone);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*
|
||||
* @covers ::__construct
|
||||
* @covers ::create
|
||||
* @covers ::now
|
||||
*/
|
||||
#[Test]
|
||||
public function itUsesTheSystemTimeZone(): void
|
||||
{
|
||||
$timeZone = 'Europe/Berlin';
|
||||
|
||||
Reference in New Issue
Block a user