xref: /PHP-5.4/ext/tidy/tests/032.phpt (revision 74560ac7)
1--TEST--
2tidy_error_count() function - basic test for tidy_error_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_error_count($tidy));
15?>
16--EXPECTF--
17int(%d)
18