xref: /PHP-7.1/ext/tidy/tests/033.phpt (revision 74560ac7)
1--TEST--
2tidy_warning_count() function - basic test for tidy_warning_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
13$tidy = tidy_parse_string($buffer);
14var_dump(tidy_warning_count($tidy));
15?>
16--EXPECTF--
17int(%d)
18