1234567891011121314151617181920212223 |
- Test DOMDocument::loadXML() detects not-well formed XML
- This test verifies the method detects an unsupported xml version
- Environment variables used in the test:
- - XML_FILE: the xml file to load
- - LOAD_OPTIONS: the second parameter to pass to the method
- - EXPECTED_RESULT: the expected result
- Antonio Diaz Ruiz <dejalatele@gmail.com>
- assert.bail=true
- <?php include('skipif.inc'); ?>
- <?php if (LIBXML_VERSION < 20701) die("skip: libxml2 2.7.1+ required"); ?>
- XML_FILE=/not_well_formed4.xml
- LOAD_OPTIONS=0
- EXPECTED_RESULT=0
- domdocumentloadxml_test_method.php
- Warning: DOMDocument::load%r(XML){0,1}%r(): Unsupported version '3.1' %s
|