xref: /PHP-5.6/ext/tidy/tests/034.phpt (revision 74560ac7)
1--TEST--
2tidy_access_count() function - basic test for tidy_access_count()
3--CREDITS--
4Christian Wenz <wenz@php.net>
5--SKIPIF--
6<?php
7  if (!extension_loaded('tidy')) die ('skip tidy not present');
8?>
9--FILE--
10<?php
11$buffer = '<img src="file.png" /><php>';
12$config = array(
13  'accessibility-check' => 1);
14
15$tidy = tidy_parse_string($buffer, $config);
16$tidy->diagnose();
17var_dump(tidy_access_count($tidy));
18?>
19--EXPECTF--
20int(%d)
21