diff options
| author | Pierrick Charron <pierrick@php.net> | 2009-12-29 16:06:27 +0000 |
|---|---|---|
| committer | Pierrick Charron <pierrick@php.net> | 2009-12-29 16:06:27 +0000 |
| commit | c55741f06f6758bec2ff183f054cbe341749285a (patch) | |
| tree | e5845e4bcd43db014aefd9adc5c26d5c9b016c7a | |
| parent | 9a46ab46aebd295e3bfa7c1e28701f654ff43258 (diff) | |
| download | php-git-c55741f06f6758bec2ff183f054cbe341749285a.tar.gz | |
Add a test for tidyNode::__construct()
| -rw-r--r-- | ext/tidy/tests/035.phpt | 12 |
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 |
