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.attachements.phpt | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 includes/composer/vendor/om/icalparser/tests/event.attachements.phpt (limited to 'includes/composer/vendor/om/icalparser/tests/event.attachements.phpt') diff --git a/includes/composer/vendor/om/icalparser/tests/event.attachements.phpt b/includes/composer/vendor/om/icalparser/tests/event.attachements.phpt deleted file mode 100644 index 1218fb7..0000000 --- a/includes/composer/vendor/om/icalparser/tests/event.attachements.phpt +++ /dev/null @@ -1,26 +0,0 @@ - - */ - -use om\IcalParser; -use Tester\Assert; -use Tester\Environment; -use function tests\test; - -require_once __DIR__ . '/bootstrap.php'; -date_default_timezone_set('Europe/Prague'); - -test('Event with multiple ATTACHMENTS', function () { - $cal = new IcalParser(); - $cal->parseFile(__DIR__ . '/cal/multiple_attachments.ics'); - $first = $cal->getEvents()->getIterator()->current(); - - // Backwards compatibility, there is only ever one key displayed - Assert::hasKey('ATTACH', $first); - Assert::type('string', $first['ATTACH']); - - // The new key 'ATTACHMENTS' is an array with 1 or more attachments - Assert::type('array', $first['ATTACHMENTS']); - Assert::count(2, $first['ATTACHMENTS']); -}); -- cgit