Initial Release of the calendar plugin

This commit is contained in:
Tobias Hößl 2012-06-03 18:19:28 +00:00
parent 45cc9885fc
commit 7115197a33
561 changed files with 189494 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<?php
class Sabre_VObject_Issue154Test extends PHPUnit_Framework_TestCase {
function testStuff() {
$vcard = new Sabre_VObject_Component('VCARD');
$vcard->VERSION = '3.0';
$vcard->UID = 'foo-bar';
$vcard->PHOTO = base64_encode('random_stuff');
$vcard->PHOTO->add('BASE64',null);
$result = $vcard->serialize();
$expected = array(
"BEGIN:VCARD",
"VERSION:3.0",
"PHOTO;BASE64:" . base64_encode('random_stuff'),
"UID:foo-bar",
"END:VCARD",
"",
);
$this->assertEquals(implode("\r\n", $expected), $result);
}
}