/** * @expectedException InvalidArgumentException */ public function testInvalidXPath() { $root = new SXE('<root />'); $new = new SXE('<new />'); $root->replaceNodes('????', $new); }