コード例 #1
0
ファイル: VCardTest.php プロジェクト: bodun/jorani
    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);
    }
コード例 #2
0
ファイル: VCardTest.php プロジェクト: floffel03/pydio-core
    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);
    }