php-src/ext/tidy/tests/034.phpt
2009-09-01 13:06:52 +00:00

21 lines
429 B
PHP

--TEST--
tidy_access_count() function - basic test for tidy_access_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>';
$config = array(
'accessibility-check' => 1);
$tidy = tidy_parse_string($buffer, $config);
$tidy->diagnose();
var_dump(tidy_access_count($tidy));
?>
--EXPECTF--
int(%d)