From 6b796258d413f00e498ce7f80f73a9f6c061f29c Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 30 Mar 2024 23:40:33 +0100 Subject: Updated 5 files, added 2 files, deleted 495 files and renamed 7 files (automated) --- .../om/icalparser/tests/event.description.phpt | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 includes/composer/vendor/om/icalparser/tests/event.description.phpt (limited to 'includes/composer/vendor/om/icalparser/tests/event.description.phpt') diff --git a/includes/composer/vendor/om/icalparser/tests/event.description.phpt b/includes/composer/vendor/om/icalparser/tests/event.description.phpt deleted file mode 100644 index 8426e32..0000000 --- a/includes/composer/vendor/om/icalparser/tests/event.description.phpt +++ /dev/null @@ -1,34 +0,0 @@ - - */ - -use om\IcalParser; -use Tester\Assert; -use function tests\test; - -require_once __DIR__ . '/bootstrap.php'; -date_default_timezone_set('Europe/Prague'); - -test('Blank description test', function () { - $cal = new IcalParser(); - $results = $cal->parseFile(__DIR__ . '/cal/blank_description.ics'); - $first = $cal->getEvents()->getIterator()->current(); - - Assert::hasKey('DESCRIPTION', $first); - Assert::same('', $first['DESCRIPTION']); -}); - -test('Multiple lines description', function () { - $cal = new IcalParser(); - $cal->parseFile(__DIR__ . '/cal/multiline_description.ics'); - $events = $cal->getEvents()->sorted(); - $first = $events->getIterator()->current(); - - Assert::same('30.6.2012 06:00:00', $first['DTSTART']->format('j.n.Y H:i:s')); - Assert::same("Here is a description that spans multiple lines!\n\nThis should be on a new line as well because the description contains newline characters.", $first['DESCRIPTION']); -}); - -- cgit