summaryrefslogtreecommitdiff
path: root/ext/tidy/tests/006.phpt
blob: 48085ae9712d66ce3c50d11160dd6f96d1f37a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
Verbose tidy_get_error_buffer()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--POST--
--GET--
--INI--
--FILE--
<?php 
	if (class_exists("tidy_doc")) {
		$a = tidy_parse_string("<HTML><asd asdf></HTML>");
		echo tidy_get_error_buffer($a);
	} else {
		tidy_parse_string("<HTML><asd asdf></HTML>");
		echo tidy_get_error_buffer(true);
	}
?>
--EXPECT--
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 7 - Error: <asd> is not recognized!
line 1 column 7 - Warning: discarding unexpected <asd>
line 1 column 17 - Warning: discarding unexpected </html>
line 1 column 7 - Warning: inserting missing 'title' element