1--TEST--
2Test DOMDocument::loadXML() with LIBXML_DTDVALID and LIBXML_NOERROR options
3--DESCRIPTION--
4This test vrifies the right behaviour of the LIBXML_NOERROR constant
5which avoids the display of the warning message
6Environment variables used in the test:
7- XML_FILE: the xml file to load
8- LOAD_OPTIONS: the second parameter to pass to the method
9- EXPECTED_RESULT: the expected result
10--CREDITS--
11Antonio Diaz Ruiz <dejalatele@gmail.com>
12--INI--
13assert.bail=true
14--SKIPIF--
15<?php include('skipif.inc'); ?>
16--ENV--
17XML_FILE=/wrong_book_with_dtd.xml
18LOAD_OPTIONS=LIBXML_DTDVALID | LIBXML_NOERROR
19EXPECTED_RESULT=1
20--FILE_EXTERNAL--
21domdocumentloadxml_test_method.inc
22--EXPECT--
23