ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AttachParseTest.php
Go to the documentation of this file.
1<?php
2
4
5use PHPUnit\Framework\TestCase;
7
8class AttachParseTest extends TestCase {
9
13 function testParseAttach() {
14
15 $vcal = <<<ICS
16BEGIN:VCALENDAR
17BEGIN:VEVENT
18ATTACH;FMTTYPE=application/postscript:ftp://example.com/pub/reports/r-960812.ps
19END:VEVENT
20END:VCALENDAR
21ICS;
22
24 $prop = $vcal->VEVENT->ATTACH;
25
26 $this->assertInstanceOf('Sabre\\VObject\\Property\\URI', $prop);
27 $this->assertEquals('ftp://example.com/pub/reports/r-960812.ps', $prop->getValue());
28
29
30 }
31
32}
An exception for terminatinating execution or to throw for unit testing.
testParseAttach()
See issue #128 for more info.
iCalendar/vCard/jCal/jCard/xCal/xCard reader object.
Definition: Reader.php:15
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42