mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
25 lines
581 B
PHP
25 lines
581 B
PHP
--TEST--
|
|
Trying to parse a non existent file
|
|
--EXTENSIONS--
|
|
tidy
|
|
--FILE--
|
|
<?php
|
|
|
|
$tidy = new tidy;
|
|
var_dump($tidy->parseFile("does_not_exist.html"));
|
|
|
|
var_dump(tidy_parse_file("does_not_exist.html"));
|
|
|
|
try {
|
|
$tidy = new tidy("does_not_exist.html");
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Warning: tidy::parseFile(): Cannot load "does_not_exist.html" into memory in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: tidy_parse_file(): Cannot load "does_not_exist.html" into memory in %s on line %d
|
|
bool(false)
|
|
Cannot load "does_not_exist.html" into memory
|