ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AttachParseTest.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
8 class AttachParseTest extends TestCase {
9 
13  function testParseAttach() {
14 
15  $vcal = <<<ICS
16 BEGIN:VCALENDAR
17 BEGIN:VEVENT
18 ATTACH;FMTTYPE=application/postscript:ftp://example.com/pub/reports/r-960812.ps
19 END:VEVENT
20 END:VCALENDAR
21 ICS;
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 }
testParseAttach()
See issue #128 for more info.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42