/**
* Test Email
*
* @dataProvider emailDataProvider $emails
*/
public function testEmail($emails = array())
{
foreach ($emails as $key => $email) {
if (is_string($key)) {
$this->vcard->addEmail($email, $key);
} else {
$this->vcard->addEmail($email);
}
}
foreach ($emails as $key => $email) {
if (is_string($key)) {
$this->assertContains('EMAIL;INTERNET;' . $key . ':' . $email, $this->vcard->getOutput());
} else {
$this->assertContains('EMAIL;INTERNET:' . $email, $this->vcard->getOutput());
}
}
}