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