1--TEST--
2Test DOMDocument::load() detects not-well formed XML
3--SKIPIF--
4<?php
5if (LIBXML_VERSION >= 21100) die('skip libxml2 test variant for version < 2.11');
6?>
7--DESCRIPTION--
8This test verifies the method detects attributes values not closed between " or '
9Environment variables used in the test:
10- XML_FILE: the xml file to load
11- LOAD_OPTIONS: the second parameter to pass to the method
12- EXPECTED_RESULT: the expected result
13--CREDITS--
14Antonio Diaz Ruiz <dejalatele@gmail.com>
15--EXTENSIONS--
16dom
17--ENV--
18XML_FILE=/not_well_formed2.xml
19LOAD_OPTIONS=0
20EXPECTED_RESULT=0
21--FILE_EXTERNAL--
22domdocumentload_test_method.inc
23--EXPECTF--
24Warning: DOMDocument::load%r(XML){0,1}%r(): AttValue: " or ' expected %s
25
26Warning: DOMDocument::load%r(XML){0,1}%r(): attributes construct error %s
27
28Warning: DOMDocument::load%r(XML){0,1}%r(): Couldn't find end of Start Tag book %s
29
30Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: books %s
31
32Warning: DOMDocument::load%r(XML){0,1}%r(): Extra content at the end of the document %s
33