xref: /PHP-8.1/ext/tidy/tests/006.phpt (revision 74c880ed)
1--TEST--
2Verbose tidy_get_error_buffer()
3--EXTENSIONS--
4tidy
5--FILE--
6<?php
7    $a = tidy_parse_string("<HTML><asd asdf></HTML>");
8    echo tidy_get_error_buffer($a);
9
10?>
11--EXPECTF--
12line 1 column 1 - Warning: missing <!DOCTYPE> declaration
13line 1 column 7 - Error: <asd> is not recogni%ced!
14line 1 column 7 - Warning: discarding unexpected <asd>
15line 1 column 17 - Warning: discarding unexpected </html>
16line 1 column 7 - Warning: inserting missing 'title' element
17