summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2009-12-29 16:06:27 +0000
committerPierrick Charron <pierrick@php.net>2009-12-29 16:06:27 +0000
commit93abcd9bb74a31735eedcbe5d1e10bc723572992 (patch)
tree5bb286d57cb3d31368a39cb8be4e2e95b3d283e4
parent37d2b9746987e6f24777d487dbf0e40468ae8960 (diff)
downloadphp-git-93abcd9bb74a31735eedcbe5d1e10bc723572992.tar.gz
Add a test for tidyNode::__construct()
-rw-r--r--ext/tidy/tests/035.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/tidy/tests/035.phpt b/ext/tidy/tests/035.phpt
new file mode 100644
index 0000000000..832f90fe57
--- /dev/null
+++ b/ext/tidy/tests/035.phpt
@@ -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