xref: /PHP-8.1/ext/tidy/tests/033.phpt (revision 7f2f0c00)
1--TEST--
2tidy_warning_count() function - basic test for tidy_warning_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_warning_count($tidy));
13?>
14--EXPECTF--
15int(%d)
16