mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
21 lines
429 B
PHP
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)
|