DOMDocument_loadXML_variation3.phpt 656 B

12345678910111213141516171819202122
  1. --TEST--
  2. Test DOMDocument::loadXML() with LIBXML_DTDVALID and LIBXML_NOERROR options
  3. --DESCRIPTION--
  4. This test vrifies the right behaviour of the LIBXML_NOERROR constant
  5. which avoids the display of the warning message
  6. Environment 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--
  11. Antonio Diaz Ruiz <dejalatele@gmail.com>
  12. --INI--
  13. assert.bail=true
  14. --EXTENSIONS--
  15. dom
  16. --ENV--
  17. XML_FILE=/wrong_book_with_dtd.xml
  18. LOAD_OPTIONS=LIBXML_DTDVALID | LIBXML_NOERROR
  19. EXPECTED_RESULT=1
  20. --FILE_EXTERNAL--
  21. domdocumentloadxml_test_method.inc
  22. --EXPECT--