Example #1
0
 /**
  * @covers Symfony\Components\DomCrawler\Crawler::addXmlContent
  */
 public function testAddXmlContent()
 {
     $crawler = new Crawler();
     $crawler->addXmlContent('<html><div class="foo"></div></html>', 'UTF-8');
     $this->assertEquals('foo', $crawler->filter('div')->attr('class'), '->addXmlContent() adds nodes from an XML string');
 }