/** * @depends testSetOrg * @depends testSetFNAppropriatelyNoHint * @group default */ public function testSetFNAppropriatelyOrganization(VCard $vcard) { $org = VCard::builder('org')->setValue(['Name' => 'Society For The Appreciation of Beefsteak'])->build(); $kind = VCard::builder('kind')->setValue('organization')->build(); $vcard->push($org, $kind); $vcard->setFNAppropriately(); $this->assertNotEmpty($vcard->fn); $this->assertEquals((string) $org, $vcard->fn[0]->getValue()); return $vcard->clear(); }