ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AttachIssueTest.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\VObject;
4
5use PHPUnit\Framework\TestCase;
6
7class AttachIssueTest extends TestCase {
8
9 function testRead() {
10
11 $event = <<<ICS
12BEGIN:VCALENDAR\r
13BEGIN:VEVENT\r
14ATTACH;FMTTYPE=;ENCODING=:Zm9v\r
15END:VEVENT\r
16END:VCALENDAR\r
17
18ICS;
19 $obj = Reader::read($event);
20 $this->assertEquals($event, $obj->serialize());
21
22 }
23
24}
An exception for terminatinating execution or to throw for unit testing.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
Definition: Reader.php:42