示例#1
0
 public function testExtract()
 {
     $extractor = new HtmlExtractor();
     static::assertEquals(['mary', 'is', 'very', 'tall', 'she', 'was', 'in', 'the', '9th', 'grade'], $extractor->extract('<html><head><title>Mary is very tall.</title></head><body>She was in the 9th grade.</body></html>'));
 }