pierrick Tue, 29 Dec 2009 16:06:27 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292765
Log:
Add a test for tidyNode::__construct()
Changed paths:
A php/php-src/branches/PHP_5_2/ext/tidy/tests/035.phpt
A php/php-src/branches/PHP_5_3/ext/tidy/tests/035.phpt
A php/php-src/trunk/ext/tidy/tests/035.phpt
Added: php/php-src/branches/PHP_5_2/ext/tidy/tests/035.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/tidy/tests/035.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_2/ext/tidy/tests/035.phpt 2009-12-29
16:06:27 UTC (rev 292765)
@@ -0,0 +1,12 @@
+--TEST--
+tidyNode::__construct()
+--SKIPIF--
+<?php
+ if (!extension_loaded('tidy')) die ('skip tidy not present');
+?>
+--FILE--
+<?php
+new tidyNode;
+?>
+--EXPECTF--
+Fatal error: Call to private tidyNode::__construct() from invalid context in
%s on line %d
Added: php/php-src/branches/PHP_5_3/ext/tidy/tests/035.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/tidy/tests/035.phpt
(rev 0)
+++ php/php-src/branches/PHP_5_3/ext/tidy/tests/035.phpt 2009-12-29
16:06:27 UTC (rev 292765)
@@ -0,0 +1,12 @@
+--TEST--
+tidyNode::__construct()
+--SKIPIF--
+<?php
+ if (!extension_loaded('tidy')) die ('skip tidy not present');
+?>
+--FILE--
+<?php
+new tidyNode;
+?>
+--EXPECTF--
+Fatal error: Call to private tidyNode::__construct() from invalid context in
%s on line %d
Added: php/php-src/trunk/ext/tidy/tests/035.phpt
===================================================================
--- php/php-src/trunk/ext/tidy/tests/035.phpt (rev 0)
+++ php/php-src/trunk/ext/tidy/tests/035.phpt 2009-12-29 16:06:27 UTC (rev
292765)
@@ -0,0 +1,12 @@
+--TEST--
+tidyNode::__construct()
+--SKIPIF--
+<?php
+ if (!extension_loaded('tidy')) die ('skip tidy not present');
+?>
+--FILE--
+<?php
+new tidyNode;
+?>
+--EXPECTF--
+Fatal error: Call to private tidyNode::__construct() from invalid context in
%s on line %d
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php