Пример #1
0
 /**
  * niszczenie obiektów
  */
 public function testUnset()
 {
     $head = new HtmlElement('head');
     $script = new HtmlElement('script');
     $head->insert($script);
     $script->destroy($script);
     $this->assertEquals(0, $head->xpath('script')->length);
     $head->destroy($head);
     $h = new HtmlElement('head');
     $h->insert(new HtmlElement('script'));
     $h->insert(new HtmlElement('script'));
     $h->insert(new HtmlElement('script'));
     $this->helpTest1($h);
     $h->destroy($h);
 }