From 475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 21 Mar 2023 16:21:21 +0100 Subject: Updated 26 files and added 1074 files (automated) --- .../vendor/om/icalparser/tests/event.url.phpt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 includes/composer/vendor/om/icalparser/tests/event.url.phpt (limited to 'includes/composer/vendor/om/icalparser/tests/event.url.phpt') 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 @@ + + */ + +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/')); +}); -- cgit