/** * @expectedException BadMethodCallException */ public function testRoot() { $root = new SXE('<root />'); $new = new SXE('<new />'); $root->insertBeforeSelf($new); }