add a test for get_parent_class() bug

This commit is contained in:
Sterling Hughes 2003-07-02 04:30:45 +00:00
parent e724e4cbdb
commit dc22926f49

View file

@ -0,0 +1,12 @@
--TEST--
Bug #24399: get_parent_class() returns the current class when passed an object
--FILE--
<?php
class Test { }
var_dump(get_parent_class('Test'));
$t = new Test;
var_dump(get_parent_class($t));
?>
--EXPECT--
bool(false)
bool(false)