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