for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Termyn\Timekeeper\Test;
use PHPUnit\Framework\TestCase;
use Termyn\Timekeeper\SystemTimeService;
use Termyn\Timekeeper\UtcTimeService;
final class UtcTimeServiceTest extends TestCase
{
public function testItReturnsDateTimeWithUtcTimeZone(): void
$timeService = new UtcTimeService(
new SystemTimeService()
);
$dateTime = $timeService->measure();
$this->assertSame(0, $dateTime->getOffset());
}