forked from friendica/deprecated-addons
moved deprecated communityhome, dav and yourls to the deprecated-addons repository
This commit is contained in:
parent
24444adef3
commit
31520f804d
675 changed files with 195144 additions and 0 deletions
29
dav/sabre-vobject/tests/Sabre/VObject/Issue154Test.php
Normal file
29
dav/sabre-vobject/tests/Sabre/VObject/Issue154Test.php
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace Sabre\VObject;
|
||||
|
||||
class Issue154Test extends \PHPUnit_Framework_TestCase {
|
||||
|
||||
function testStuff() {
|
||||
|
||||
$vcard = new Component('VCARD');
|
||||
$vcard->VERSION = '3.0';
|
||||
$vcard->PHOTO = base64_encode('random_stuff');
|
||||
$vcard->PHOTO->add('BASE64',null);
|
||||
$vcard->UID = 'foo-bar';
|
||||
|
||||
$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);
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue