Esempio n. 1
0
    function testVCardImportVCardWithoutUID()
    {
        $data = <<<EOT
BEGIN:VCARD
END:VCARD
EOT;
        $tempFile = $this->createStream($data);
        $objects = new VCard($tempFile);
        $count = 0;
        while ($objects->getNext()) {
            $count++;
        }
        $this->assertEquals(1, $count);
    }
Esempio n. 2
0
    function testVCardImportVCardWithoutUID()
    {
        $data = <<<EOT
BEGIN:VCARD
END:VCARD
EOT;
        $tempFile = $this->createStream($data);
        $objects = new VCard($tempFile);
        $return = "";
        while ($object = $objects->getNext()) {
            $return .= $object->serialize();
        }
        VObject\Reader::read($return);
    }