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 | 93abcd9bb74a31735eedcbe5d1e10bc723572992 (patch) | |
| tree | 5bb286d57cb3d31368a39cb8be4e2e95b3d283e4 | |
| parent | 37d2b9746987e6f24777d487dbf0e40468ae8960 (diff) | |
| download | php-git-93abcd9bb74a31735eedcbe5d1e10bc723572992.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 |
