summaryrefslogtreecommitdiff
path: root/includes/composer/vendor/om/icalparser/tests/event.timezones.phpt
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-03-30 23:40:33 +0100
committerRaindropsSys <raindrops@equestria.dev>2024-03-30 23:40:33 +0100
commit6b796258d413f00e498ce7f80f73a9f6c061f29c (patch)
tree49e64a5dd4cde2acff7f0a93ed3f8e20e1cb2dc8 /includes/composer/vendor/om/icalparser/tests/event.timezones.phpt
parent5860551daa0f60103ad24e93da29f401a653f144 (diff)
downloadpluralconnect-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/event.timezones.phpt')
-rw-r--r--includes/composer/vendor/om/icalparser/tests/event.timezones.phpt39
1 files changed, 0 insertions, 39 deletions
diff --git a/includes/composer/vendor/om/icalparser/tests/event.timezones.phpt b/includes/composer/vendor/om/icalparser/tests/event.timezones.phpt
deleted file mode 100644
index fcb708b..0000000
--- a/includes/composer/vendor/om/icalparser/tests/event.timezones.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/**
- * @author Marc Vachette <marc.vachette@gmail.com>
- */
-
-use om\IcalParser;
-use Tester\Assert;
-use function tests\test;
-
-require_once __DIR__ . '/bootstrap.php';
-date_default_timezone_set('Europe/Paris');
-
-test('Normal time zone', function () {
- $cal = new IcalParser();
- $cal->parseFile(__DIR__ . '/cal/blank_description.ics');
- Assert::same('America/Los_Angeles', $cal->timezone->getName());
-});
-
-test('Negative zero UTC timezone', function () {
- $cal = new IcalParser();
- $cal->parseFile(__DIR__ . '/cal/utc_negative_zero.ics');
- Assert::same('Etc/GMT', $cal->timezone->getName());
-});
-
-/**
- * Time zone with custom prefixes (Mozilla files tken from here: https://www.mozilla.org/en-US/projects/calendar/holidays/)
- */
-test('Time zone with custom prefixes', function () {
- $cal = new IcalParser();
- $cal->parseFile(__DIR__ . '/cal/FrenchHolidays.ics');
- Assert::same('Europe/Paris', $cal->timezone->getName());
-});
-
-test('Weird windows timezones', function () {
- $cal = new IcalParser();
- $cal->parseFile(__DIR__ . '/cal/weird_windows_timezones.ics');
- $cal->getEvents()->sorted();
- Assert::same('Atlantic/Reykjavik', $cal->timezone->getName());
-});