mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
13 lines
380 B
PHP
13 lines
380 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use MobilizonConnector\LocalDateTime;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class LocalDateTimeTest extends TestCase {
|
|
public function testCanGet24TimeForUsualTime(): void {
|
|
$d = new LocalDateTime('2020-12-24T16:45:00Z', new DateTimeZone("utc"));
|
|
$this->assertEquals(new DateTimeImmutable('2020-12-24T16:45:00Z'), $d->getValue());
|
|
}
|
|
}
|