Mercurial > hg > rc1
annotate vendor/sabre/vobject/tests/VObject/AttachIssueTest.php @ 30:7498e7cacd71
better error message
| author | Charlie Root |
|---|---|
| date | Tue, 13 Mar 2018 12:59:17 -0400 |
| parents | 430dbd5346f7 |
| children |
| rev | line source |
|---|---|
| 7 | 1 <?php |
| 2 | |
| 3 namespace Sabre\VObject; | |
| 4 | |
| 5 class AttachIssueTest extends \PHPUnit_Framework_TestCase { | |
| 6 | |
| 7 function testRead() { | |
| 8 | |
| 9 $event = <<<ICS | |
| 10 BEGIN:VCALENDAR\r | |
| 11 BEGIN:VEVENT\r | |
| 12 ATTACH;FMTTYPE=;ENCODING=:Zm9v\r | |
| 13 END:VEVENT\r | |
| 14 END:VCALENDAR\r | |
| 15 | |
| 16 ICS; | |
| 17 $obj = Reader::read($event); | |
| 18 $this->assertEquals($event, $obj->serialize()); | |
| 19 | |
| 20 } | |
| 21 | |
| 22 } |
