Skip to content

Commit eac3e3e

Browse files
committed
Add a test for tidyNode::__construct()
1 parent c3230ad commit eac3e3e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ext/tidy/tests/035.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
tidyNode::__construct()
3+
--SKIPIF--
4+
<?php
5+
if (!extension_loaded('tidy')) die ('skip tidy not present');
6+
?>
7+
--FILE--
8+
<?php
9+
new tidyNode;
10+
?>
11+
--EXPECTF--
12+
Fatal error: Call to private tidyNode::__construct() from invalid context in %s on line %d

0 commit comments

Comments
 (0)