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

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

public testSimpleVcard ( )
    public function testSimpleVcard()
    {
        $vcard = new VCard();
        $vcard->addName("Admiraal", "Wouter");
        $parser = new VCardParser($vcard->buildVCard());
        $this->assertEquals($parser->getCardAtIndex(0)->firstname, "Wouter");
        $this->assertEquals($parser->getCardAtIndex(0)->lastname, "Admiraal");
        $this->assertEquals($parser->getCardAtIndex(0)->fullname, "Wouter Admiraal");
    }