1--TEST--
2Test DOMDocument::load() detects not-well formed XML
3--DESCRIPTION--
4This test verifies the method detects extra content at the end of the document
5Environment variables used in the test:
6- XML_FILE: the xml file to load
7- LOAD_OPTIONS: the second parameter to pass to the method
8- EXPECTED_RESULT: the expected result
9--CREDITS--
10Antonio Diaz Ruiz <dejalatele@gmail.com>
11--EXTENSIONS--
12dom
13--ENV--
14XML_FILE=/not_well_formed5.xml
15LOAD_OPTIONS=0
16EXPECTED_RESULT=0
17--FILE_EXTERNAL--
18domdocumentload_test_method.inc
19--EXPECTF--
20Warning: DOMDocument::load%r(XML){0,1}%r(): Extra content at the end of the document %s
21