summaryrefslogtreecommitdiff
path: root/ext/tidy/tests/034.phpt
blob: 9780315239f97cb720e82bbd4b1a8b5fb6c8e719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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)