mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-08 17:38:49 +00:00
Second part of refactoring; should be runnable again, yet not thoroughly tested
This commit is contained in:
parent
b8234a1cb8
commit
6186153f68
88 changed files with 2135 additions and 1186 deletions
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
|
||||
class Sabre_VObject_Issue154Test extends PHPUnit_Framework_TestCase {
|
||||
|
||||
function testStuff() {
|
||||
|
||||
$vcard = new Sabre_VObject_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