xref: /PHP-5.6/ext/tidy/tests/bug_50558.phpt (revision 3cc801b9)
1--TEST--
2Bug #50558 - Broken object model when extending tidy
3--SKIPIF--
4<?php if (!extension_loaded("tidy")) print "skip"; ?>
5--FILE--
6<?php
7class MyTidy extends tidy
8{
9            // foo
10}
11
12function doSomething(MyTidy $o)
13{
14            var_dump($o);
15}
16
17$o = new MyTidy();
18var_dump($o instanceof MyTidy);
19doSomething($o);
20?>
21--EXPECTF--
22bool(true)
23object(MyTidy)#%d (%d) {
24  ["errorBuffer"]=>
25  NULL
26  ["value"]=>
27  NULL
28}
29