diff options
Diffstat (limited to 'ext/tidy/tests/032.phpt')
-rw-r--r-- | ext/tidy/tests/032.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/tidy/tests/032.phpt b/ext/tidy/tests/032.phpt new file mode 100644 index 0000000..23230b0 --- /dev/null +++ b/ext/tidy/tests/032.phpt @@ -0,0 +1,17 @@ +--TEST-- +tidy_error_count() function - basic test for tidy_error_count() +--CREDITS-- +Christian Wenz <wenz@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<img src="file.png" /><php>'; + +$tidy = tidy_parse_string($buffer); +var_dump(tidy_error_count($tidy)); +?> +--EXPECTF-- +int(%d) |