DOMDocument_loadHTMLfile_variation2.phpt 396 B

1234567891011121314151617
  1. --TEST--
  2. Test DOMDocument::loadHTMLFile when a not-well formed document is loaded
  3. --DESCRIPTION--
  4. Verifies the behavior if a not-well formed document is loaded
  5. --CREDITS--
  6. Antonio Diaz Ruiz <dejalatele@gmail.com>
  7. --INI--
  8. assert.bail=true
  9. --EXTENSIONS--
  10. dom
  11. --FILE--
  12. <?php
  13. $doc = new DOMDocument();
  14. $result = $doc->loadHTMLFile(__DIR__ . "/not_well.html");
  15. assert($result === true);
  16. ?>
  17. --EXPECT--