JeroenDesloovere\VCard\tests\VCardParserTest::testVcardDB PHP Метод

testVcardDB() публичный Метод

public testVcardDB ( )
    public function testVcardDB()
    {
        $db = '';
        $vcard = new VCard();
        $vcard->addName("Admiraal", "Wouter");
        $db .= $vcard->buildVCard();
        $vcard = new VCard();
        $vcard->addName("Lorem", "Ipsum");
        $db .= $vcard->buildVCard();
        $parser = new VCardParser($db);
        $this->assertEquals($parser->getCardAtIndex(0)->fullname, "Wouter Admiraal");
        $this->assertEquals($parser->getCardAtIndex(1)->fullname, "Ipsum Lorem");
    }