mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
17 lines
425 B
PHP
17 lines
425 B
PHP
--TEST--
|
|
Test DOMDocument::loadHTMLFile when the file doesn't exist
|
|
--DESCRIPTION--
|
|
Verifies that an error message is showed if the file doesn't exist
|
|
--CREDITS--
|
|
Antonio Diaz Ruiz <dejalatele@gmail.com>
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$doc = new DOMDocument();
|
|
$result = $doc->loadHTMLFile(__DIR__ . "/ffff/test.html");
|
|
assert($result === false);
|
|
?>
|
|
--EXPECTF--
|
|
%r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): I/O %s
|