php-src/ext/tidy/tests/bug_50558.phpt

29 lines
424 B
PHP

--TEST--
Bug #50558 - Broken object model when extending tidy
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
class MyTidy extends tidy
{
// foo
}
function doSomething(MyTidy $o)
{
var_dump($o);
}
$o = new MyTidy();
var_dump($o instanceof MyTidy);
doSomething($o);
?>
--EXPECTF--
bool(true)
object(MyTidy)#%d (%d) {
["errorBuffer"]=>
NULL
["value"]=>
NULL
}