xref: /plugin/davcal/vendor/sabre/vobject/tests/VObject/AttachIssueTest.php (revision a1a3b6794e0e143a4a8b51d3185ce2d339be61ab)
1*a1a3b679SAndreas Boehler<?php
2*a1a3b679SAndreas Boehler
3*a1a3b679SAndreas Boehlernamespace Sabre\VObject;
4*a1a3b679SAndreas Boehler
5*a1a3b679SAndreas Boehlerclass AttachIssueTest extends \PHPUnit_Framework_TestCase {
6*a1a3b679SAndreas Boehler
7*a1a3b679SAndreas Boehler    function testRead() {
8*a1a3b679SAndreas Boehler
9*a1a3b679SAndreas Boehler        $event = <<<ICS
10*a1a3b679SAndreas BoehlerBEGIN:VCALENDAR\r
11*a1a3b679SAndreas BoehlerBEGIN:VEVENT\r
12*a1a3b679SAndreas BoehlerATTACH;FMTTYPE=;ENCODING=:Zm9v\r
13*a1a3b679SAndreas BoehlerEND:VEVENT\r
14*a1a3b679SAndreas BoehlerEND:VCALENDAR\r
15*a1a3b679SAndreas Boehler
16*a1a3b679SAndreas BoehlerICS;
17*a1a3b679SAndreas Boehler        $obj = Reader::read($event);
18*a1a3b679SAndreas Boehler        $this->assertEquals($event, $obj->serialize());
19*a1a3b679SAndreas Boehler
20*a1a3b679SAndreas Boehler    }
21*a1a3b679SAndreas Boehler
22*a1a3b679SAndreas Boehler}
23