Exemplo n.º 1
1
 public function toString($userPasscode = null)
 {
     $userLevel = $this->getUserLevel($userPasscode);
     $vCard = new VCard('vcard.vcf');
     $vCard->setLevel($userLevel);
     return $vCard->toHCard();
 }
 /**
  * @dataProvider VCardTestSuite::validVCardProvider
  */
 public function testReturnsWellFormedHtml($input)
 {
     if (!file_exists($input['filename'])) {
         $this->markTestSkipped('File: ' . $input['filename'] . "does not exist.");
     }
     $obj = new VCard($input['filename']);
     $obj->setLevel($input['level']);
     $this->assertFalse($this->getValidationError($obj->toHCard()));
 }