--TEST-- XMLReader::fromUri() - custom constructor with error --EXTENSIONS-- xmlreader --FILE-- getMessage(), "\n"; } $filename = __DIR__ . '/_fromUri_custom_constructor_error.xml'; $xmlstring = ' '; file_put_contents($filename, $xmlstring); try { CustomXMLReader::fromUri($filename); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Unable to open source data nope --CLEAN--