ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
AttachParseTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\VObject\ICalendar
;
4
5
use
PHPUnit\Framework\TestCase
;
6
use
Sabre\VObject\Reader
;
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
23
$vcal
=
Reader::read
(
$vcal
);
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
}
$vcal
$vcal
Definition:
bench_freebusygenerator.php:22
Sabre\VObject\ICalendar\AttachParseTest\testParseAttach
testParseAttach()
See issue #128 for more info.
Definition:
AttachParseTest.php:13
Sabre\VObject\ICalendar\AttachParseTest
Definition:
AttachParseTest.php:8
Reader
Sabre\VObject\Reader\read
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition:
Reader.php:42
Sabre\VObject\ICalendar
Definition:
AttachParseTest.php:3
php
TestCase
libs
composer
vendor
sabre
vobject
tests
VObject
ICalendar
AttachParseTest.php
Generated on Thu Jan 16 2025 19:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)