public function addCompany($company) { $this->setProperty('company', 'ORG' . $this->getCharsetString(), $company); // if filename is empty, add to filename if ($this->filename === null) { $this->setFilename($company); } return $this; }
public function testOrganization() { $vcard = new VCard(); $vcard->addCompany('Lorem Corp.'); $parser = new VCardParser($vcard->buildVCard()); $this->assertEquals($parser->getCardAtIndex(0)->organization, 'Lorem Corp.'); }