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 | eac3e3e4a445bdb8bddd066dc1cb32f6dc8d7cc5 (patch) | |
| tree | 6fd4690d40bdb738520bc2d917db98994c422def | |
| parent | c3230ad21728c2df9c5beb87725e6f94e435a3f2 (diff) | |
| download | php-git-eac3e3e4a445bdb8bddd066dc1cb32f6dc8d7cc5.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 |
