Пример #1
0
 public function testInvalidMentionType()
 {
     $html = file_get_contents($this->dir . '/HTML/testInvalidMentionType.html');
     $parser = new Parser();
     $microformats = $parser->getMicroformats($html, null);
     try {
         $parser->getMentionType($microformats);
     } catch (InvalidMentionException $e) {
         return;
     }
     $this->fail('An expected exception has not been thrown');
 }