public function testCheckRepostOf() { $html = file_get_contents($this->dir . '/HTML/testCheckRepostOf.html'); $target = 'http://billy.com/notes/2014/06/22/4/'; $parser = new Parser(); $microformats = $parser->getMicroformats($html, null); $this->assertTrue($parser->checkRepostOf($microformats, $target)); }