svn: /php/php-src/trunk/ext/tidy/tests/ tidy_error1.phpt
| From: | Patrick Allaert | Date: | Thu, 27 Aug 2009 08:49:24 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/tidy/tests/ tidy_error1.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60247@lists.php.net to get a copy of this message | ||
patrickallaert Thu, 27 Aug 2009 08:49:24 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287798
Log:
Added: Tidy test with invalid configuration options
Changed paths:
A php/php-src/trunk/ext/tidy/tests/tidy_error1.phpt
Added: php/php-src/trunk/ext/tidy/tests/tidy_error1.phpt
===================================================================
--- php/php-src/trunk/ext/tidy/tests/tidy_error1.phpt (rev 0)
+++ php/php-src/trunk/ext/tidy/tests/tidy_error1.phpt 2009-08-27 08:49:24 UTC (rev 287798)
@@ -0,0 +1,19 @@
+--TEST--
+Notice triggered by invalid configuration options
+--CREDITS--
+Christian Wenz <wenz@php.net>
+--SKIPIF--
+<?php
+ if (!extension_loaded('tidy')) die ('skip tidy not present');
+?>
+--FILE--
+<?php
+$buffer = '<html></html>';
+$config = array('bogus' => 'willnotwork');
+
+$tidy = new tidy();
+var_dump($tidy->parseString($buffer, $config));
+?>
+--EXPECTF--
+Notice: tidy::parseString(): Unknown Tidy Configuration Option 'bogus' in %s on line %d
+bool(true)