/** * @expectedException \SxCore\Html\Exception\RuntimeException */ public function testAddChildFails() { $htmlElement = new HtmlElement('input'); $childElement = new HtmlElement('bacon'); $htmlElement->addChild($childElement); }