Annotation of embedaddon/php/ext/tidy/tests/004.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: tidy_diagnose()
                      3: --SKIPIF--
                      4: <?php if (!extension_loaded("tidy")) print "skip"; ?>
                      5: --FILE--
                      6: <?php 
                      7:        $a = tidy_parse_string("<HTML></HTML>");
                      8:        tidy_diagnose($a);
                      9:        echo tidy_get_error_buffer($a);
                     10: ?>
                     11: --EXPECT--
                     12: 
                     13: line 1 column 1 - Warning: missing <!DOCTYPE> declaration
                     14: line 1 column 7 - Warning: discarding unexpected </html>
                     15: line 1 column 14 - Warning: inserting missing 'title' element
                     16: Info: Document content looks like HTML 3.2
                     17: 3 warnings, 0 errors were found!

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>