]> granicus.if.org Git - php/commitdiff
Add a test for tidyNode::__construct()
authorPierrick Charron <pierrick@php.net>
Tue, 29 Dec 2009 16:06:27 +0000 (16:06 +0000)
committerPierrick Charron <pierrick@php.net>
Tue, 29 Dec 2009 16:06:27 +0000 (16:06 +0000)
ext/tidy/tests/035.phpt [new file with mode: 0644]

diff --git a/ext/tidy/tests/035.phpt b/ext/tidy/tests/035.phpt
new file mode 100644 (file)
index 0000000..832f90f
--- /dev/null
@@ -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