public function testBDay() { $vcard = new VCard(); $vcard->addBirthday('31-12-2015'); $parser = new VCardParser($vcard->buildVCard()); $this->assertEquals($parser->getCardAtIndex(0)->birthday->format('Y-m-d'), '2015-12-31'); }
/** * Test multiple birthdays * * @expectedException JeroenDesloovere\VCard\Exception */ public function testMultipleBirthdays() { $this->assertEquals($this->vcard, $this->vcard->addBirthday('1')); $this->assertEquals($this->vcard, $this->vcard->addBirthday('2')); }