コード例 #1
0
 public function testExtractBody()
 {
     $crawler = new Crawler($this->getHtmlContent());
     $adapter = new Adapters\DefaultAdapter();
     $body = $adapter->extractBody($crawler);
     $this->assertContains('article body here', $body);
     $this->assertNotContains('side block', $body);
 }