public function testAddChildException() { $d = new Dom(Dom::XHTML11); $this->setExpectedException('Pop\\Dom\\Exception'); $d->addChild('badchild'); }