]> granicus.if.org Git - php/commitdiff
Added Tidy basic test for tidy_config_count
authorPatrick Allaert <patrickallaert@php.net>
Tue, 1 Sep 2009 13:05:54 +0000 (13:05 +0000)
committerPatrick Allaert <patrickallaert@php.net>
Tue, 1 Sep 2009 13:05:54 +0000 (13:05 +0000)
ext/tidy/tests/031.phpt [new file with mode: 0644]

diff --git a/ext/tidy/tests/031.phpt b/ext/tidy/tests/031.phpt
new file mode 100644 (file)
index 0000000..cf6aed9
--- /dev/null
@@ -0,0 +1,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)