1--TEST--
2Trying to parse a non existent file
3--EXTENSIONS--
4tidy
5--FILE--
6<?php
7
8$tidy = new tidy;
9var_dump($tidy->parseFile("does_not_exist.html"));
10
11var_dump(tidy_parse_file("does_not_exist.html"));
12
13try {
14    $tidy = new tidy("does_not_exist.html");
15} catch (Exception $e) {
16    echo $e->getMessage(), "\n";
17}
18?>
19--EXPECTF--
20Warning: tidy::parseFile(): Cannot load "does_not_exist.html" into memory in %s on line %d
21bool(false)
22
23Warning: tidy_parse_file(): Cannot load "does_not_exist.html" into memory in %s on line %d
24bool(false)
25Cannot load "does_not_exist.html" into memory
26