php-src/ext/reflection/tests/bug26695.phpt

25 lines
389 B
Plaintext
Raw Normal View History

2003-12-22 22:53:48 +00:00
--TEST--
Bug #26695 (Reflection API does not recognize mixed-case class hints)
--FILE--
<?php
class Foo {
}
class Bar {
function demo(foo $f) {
}
}
2004-03-30 21:13:05 +00:00
$class = new ReflectionClass('bar');
2003-12-22 22:53:48 +00:00
$methods = $class->getMethods();
$params = $methods[0]->getParameters();
2006-02-27 00:18:59 +00:00
$class = $params[0]->getDeclaringClass();
2003-12-22 22:53:48 +00:00
var_dump($class->getName());
?>
===DONE===
--EXPECT--
string(3) "Foo"
===DONE===