From: Patrick Allaert Date: Tue, 1 Sep 2009 13:05:54 +0000 (+0000) Subject: Added Tidy basic test for tidy_config_count X-Git-Tag: php-5.4.0alpha1~191^2~2717 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=476569b691c9be411dcf97a16e269be02ab95d45;p=php Added Tidy basic test for tidy_config_count --- diff --git a/ext/tidy/tests/031.phpt b/ext/tidy/tests/031.phpt new file mode 100644 index 0000000000..cf6aed9cce --- /dev/null +++ b/ext/tidy/tests/031.phpt @@ -0,0 +1,18 @@ +--TEST-- +tidy_config_count() function - basic test for tidy_config_count() +--CREDITS-- +Christian Wenz +--SKIPIF-- + +--FILE-- +'; +$config = array('doctype' => 'php'); + +$tidy = tidy_parse_string($buffer, $config); +var_dump(tidy_config_count($tidy)); +?> +--EXPECTF-- +int(%d)