mirror of
https://github.com/php/php-src.git
synced 2025-01-11 05:24:49 +08:00
Added Tidy basic test for tidy_warning_count
This commit is contained in:
parent
a137593541
commit
f4ee7dee81
17
ext/tidy/tests/033.phpt
Normal file
17
ext/tidy/tests/033.phpt
Normal 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)
|
Loading…
Reference in New Issue
Block a user