public function addLogo($url, $include = true) { $this->addMedia('LOGO', $url, $include, 'logo'); return $this; }
/** * Test adding logo with no image * * @expectedException JeroenDesloovere\VCard\VCardMediaException * @expectedExceptionMessage Returned data aren't an image. */ public function testAddLogoWithNoImage() { $this->vcard->addLogo(__DIR__ . '/wrongfile', true); }