svn: /php/php-src/trunk/ext/tidy/tests/ 033.phpt
| From: | Patrick Allaert | Date: | Tue, 01 Sep 2009 13:06:31 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/tidy/tests/ 033.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60281@lists.php.net to get a copy of this message | ||
patrickallaert Tue, 01 Sep 2009 13:06:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287940
Log:
Added Tidy basic test for tidy_warning_count
Changed paths:
A php/php-src/trunk/ext/tidy/tests/033.phpt
Added: php/php-src/trunk/ext/tidy/tests/033.phpt
===================================================================
--- php/php-src/trunk/ext/tidy/tests/033.phpt (rev 0)
+++ php/php-src/trunk/ext/tidy/tests/033.phpt 2009-09-01 13:06:31 UTC (rev 287940)
@@ -0,0 +1,17 @@
+--TEST--
+tidy_warning_count() function - basic test for tidy_warning_count()
+--CREDITS--
+Christian Wenz <wenz@php.net>
+--SKIPIF--
+<?php
+ if (!extension_loaded('tidy')) die ('skip tidy not present');
+?>
+--FILE--
+<?php
+$buffer = '<img src="file.png" /><php>';
+
+$tidy = tidy_parse_string($buffer);
+var_dump(tidy_warning_count($tidy));
+?>
+--EXPECTF--
+int(%d)