xref: /PHP-8.2/ext/xmlreader/tests/open_error.phpt (revision 74859783)
1--TEST--
2XMLReader: open error
3--EXTENSIONS--
4xmlreader
5--FILE--
6<?php
7$reader = new XMLReader();
8var_dump($reader->open(__DIR__.'/missing-file.xml'));
9$reader->close();
10?>
11--EXPECTF--
12Warning: XMLReader::open(): Unable to open source data in %s on line %d
13bool(false)
14