Example #1
0
 /**
  * @group default
  * @depends testOutputEmptyVCard
  * @depends testPushSpeccedSingle
  * @dataProvider stringEscapeProvider
  */
 public function testOutputFN($unescaped, $escaped, VCard $vcard)
 {
     $vcard->push(VCard::builder('fn')->setValue($unescaped)->build());
     $output = $vcard->output();
     $this->assertNotEmpty($output);
     $expected = ['FN:' . $escaped, 'UID:' . VCard::escape($vcard->getUID())];
     $lines = $this->checkAndRemoveSkeleton($output);
     $this->assertEquals($expected, $lines);
     return $vcard->clear();
 }