Added Tidy basic test for tidy_warning_count

This commit is contained in:
Patrick Allaert 2009-09-01 13:06:31 +00:00
parent a137593541
commit f4ee7dee81

17
ext/tidy/tests/033.phpt Normal file
View File

@ -0,0 +1,17 @@
--TEST--
tidy_warning_count() function - basic test for tidy_warning_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_warning_count($tidy));
?>
--EXPECTF--
int(%d)