2003-08-01 00:22:43 +00:00
|
|
|
--TEST--
|
|
|
|
tidy_diagnose()
|
|
|
|
--SKIPIF--
|
2003-08-06 21:32:46 +00:00
|
|
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
2003-08-01 00:22:43 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2004-01-14 02:43:33 +00:00
|
|
|
$a = tidy_parse_string("<HTML></HTML>");
|
|
|
|
tidy_diagnose($a);
|
|
|
|
echo tidy_get_error_buffer($a);
|
2003-08-01 00:22:43 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
|
|
|
|
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
|
|
|
|
line 1 column 7 - Warning: discarding unexpected </html>
|
|
|
|
line 1 column 14 - Warning: inserting missing 'title' element
|
|
|
|
Info: Document content looks like HTML 3.2
|
|
|
|
3 warnings, 0 errors were found!
|