Example #1
0
 /**
  * Some cards for testing.
  * @return an organization VCard.
  */
 public function getJohnDoe()
 {
     if (null === $this->johnDoe) {
         $path = __DIR__ . '/vcards/JohnDoe.vcf';
         $parser = new VCardParser();
         $vcards = $parser->importFromFile($path);
         $this->assertCount(1, $vcards);
         $this->johnDoe = $vcards[0];
     }
     return $this->johnDoe;
 }