diff options
author | RaindropsSys <raindrops@equestria.dev> | 2024-03-30 23:40:33 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2024-03-30 23:40:33 +0100 |
commit | 6b796258d413f00e498ce7f80f73a9f6c061f29c (patch) | |
tree | 49e64a5dd4cde2acff7f0a93ed3f8e20e1cb2dc8 /includes/composer/vendor/om/icalparser/tests/missing.timezone.phpt | |
parent | 5860551daa0f60103ad24e93da29f401a653f144 (diff) | |
download | pluralconnect-6b796258d413f00e498ce7f80f73a9f6c061f29c.tar.gz pluralconnect-6b796258d413f00e498ce7f80f73a9f6c061f29c.tar.bz2 pluralconnect-6b796258d413f00e498ce7f80f73a9f6c061f29c.zip |
Updated 5 files, added 2 files, deleted 495 files and renamed 7 files (automated)
Diffstat (limited to 'includes/composer/vendor/om/icalparser/tests/missing.timezone.phpt')
-rw-r--r-- | includes/composer/vendor/om/icalparser/tests/missing.timezone.phpt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/includes/composer/vendor/om/icalparser/tests/missing.timezone.phpt b/includes/composer/vendor/om/icalparser/tests/missing.timezone.phpt deleted file mode 100644 index 63eb6c2..0000000 --- a/includes/composer/vendor/om/icalparser/tests/missing.timezone.phpt +++ /dev/null @@ -1,24 +0,0 @@ -<?php - -use om\IcalParser; -use Tester\Assert; -use function tests\test; - -require_once __DIR__ . '/bootstrap.php'; -date_default_timezone_set('Europe/Prague'); - -test('Time zone should remain empty', function () { - $cal = new IcalParser(); - $cal->parseFile(__DIR__ . '/cal/missing-timezone.ics'); - - Assert::null($cal->timezone); -}); - -test('Timezone should be same as current timezone', function () { - $cal = new IcalParser(); - $cal->parseFile(__DIR__ . '/cal/missing-timezone.ics'); - $dtstart = $cal->getEvents()->reversed()->getIterator()->current()['DTSTART']; - /** @var DateTime $dtstart */ - Assert::same('Europe/Prague', $dtstart->getTimezone()->getName()); - Assert::same('7.11.2022', $dtstart->format('j.n.Y')); -});
\ No newline at end of file |