summaryrefslogtreecommitdiff
path: root/ext/tidy/tests/031.phpt
blob: cf6aed9cce92739daf941ab886a1f1e099e12423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
tidy_config_count() function - basic test for tidy_config_count()
--CREDITS--
Christian Wenz <wenz@php.net>
--SKIPIF--
<?php
  if (!extension_loaded('tidy')) die ('skip tidy not present');
?>
--FILE--
<?php
$buffer = '<html></html>';
$config = array('doctype' => 'php');

$tidy = tidy_parse_string($buffer, $config);
var_dump(tidy_config_count($tidy));
?>
--EXPECTF--
int(%d)