annotate vendor/sabre/vobject/tests/VObject/AttachIssueTest.php @ 41:d2414df68d78

Updated by Alex S Grebenschikov (www.poralix.com) to make it compatible with RoundCube 1.3.0
author Charlie Root
date Fri, 24 Jan 2025 14:20:15 -0500
parents 430dbd5346f7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
1 <?php
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
2
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
3 namespace Sabre\VObject;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
4
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
5 class AttachIssueTest extends \PHPUnit_Framework_TestCase {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
6
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
7 function testRead() {
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
8
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
9 $event = <<<ICS
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
10 BEGIN:VCALENDAR\r
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
11 BEGIN:VEVENT\r
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
12 ATTACH;FMTTYPE=;ENCODING=:Zm9v\r
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
13 END:VEVENT\r
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
14 END:VCALENDAR\r
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
15
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
16 ICS;
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
17 $obj = Reader::read($event);
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
18 $this->assertEquals($event, $obj->serialize());
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
19
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
20 }
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
21
430dbd5346f7 vendor sabre as distributed
Charlie Root
parents:
diff changeset
22 }