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