1--TEST-- 2Test DOMDocument::load() detects not-well formed XML 3--DESCRIPTION-- 4This test verifies the method detects an opening and ending tag mismatch 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--INI-- 12assert.bail=true 13--SKIPIF-- 14<?php include('skipif.inc'); ?> 15--ENV-- 16XML_FILE=/not_well_formed.xml 17LOAD_OPTIONS=0 18EXPECTED_RESULT=0 19--FILE_EXTERNAL-- 20domdocumentload_test_method.inc 21--EXPECTF-- 22Warning: DOMDocument::load%r(XML){0,1}%r(): Opening and ending tag mismatch: title line 5 and book %s 23 24Warning: DOMDocument::load%r(XML){0,1}%r(): %rexpected '>'|Opening and ending tag mismatch: book line (4|5) and books%r %s 25 26Warning: DOMDocument::load%r(XML){0,1}%r(): %rPremature end of data in tag books|EndTag: '<\/' not found%r %s 27