--TEST-- Testing xpath() with invalid XML --SKIPIF-- --FILE-- xpath("BBBB")); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- SimpleXMLElement is not properly initialized