Пример #1
0
 public function testMagicCallReturnsArray()
 {
     $this->collection[] = new DOMDocument();
     $this->collection[] = new DOMDocument();
     $result = $this->collection->loadHtml('<html>');
     $this->assertSame(array(true, true), $result);
     $result = $this->collection->saveHTML();
     $this->assertCount(2, $result);
     $this->assertContains('<html></html>', $result[0]);
     $this->assertContains('<html></html>', $result[1]);
 }