summaryrefslogtreecommitdiff
path: root/includes/composer/vendor/om/icalparser/tests/event.url.phpt
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-21 16:21:21 +0100
committerRaindropsSys <contact@minteck.org>2023-03-21 16:21:21 +0100
commit475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd (patch)
tree2cff46debf9c1e13892e7babff9deb6874ecb4b2 /includes/composer/vendor/om/icalparser/tests/event.url.phpt
parent7ccc2de87f9e25c715dc09b9aba4eb5c66f80424 (diff)
downloadpluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.tar.gz
pluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.tar.bz2
pluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.zip
Updated 26 files and added 1074 files (automated)
Diffstat (limited to 'includes/composer/vendor/om/icalparser/tests/event.url.phpt')
-rw-r--r--includes/composer/vendor/om/icalparser/tests/event.url.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/includes/composer/vendor/om/icalparser/tests/event.url.phpt b/includes/composer/vendor/om/icalparser/tests/event.url.phpt
new file mode 100644
index 0000000..b39d3e3
--- /dev/null
+++ b/includes/composer/vendor/om/icalparser/tests/event.url.phpt
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Copyright (c) 2004-2022 Roman Ožana (https://ozana.cz)
+ *
+ * @license BSD-3-Clause
+ * @author Roman Ožana <roman@ozana.cz>
+ */
+
+use om\IcalParser;
+use Tester\Assert;
+use function tests\test;
+
+require_once __DIR__ . '/bootstrap.php';
+
+test('URL parsing check', function () {
+ $cal = new IcalParser();
+ $cal->parseFile(__DIR__ . '/cal/url.ics');
+ $first = $cal->getEvents()->getIterator()->current();
+
+ Assert::hasKey('URL', $first);
+ Assert::same($first['URL'], urlencode('https://github.com/OzzyCzech/icalparser/'));
+});