2003-12-22 22:53:48 +00:00
|
|
|
--TEST--
|
2006-03-12 12:38:25 +00:00
|
|
|
Reflection Bug #26695 (Reflection API does not recognize mixed-case class hints)
|
2003-12-22 22:53:48 +00:00
|
|
|
--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-03-12 17:22:34 +00:00
|
|
|
$class = $params[0]->getClass();
|
2003-12-22 22:53:48 +00:00
|
|
|
|
|
|
|
var_dump($class->getName());
|
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--EXPECT--
|
|
|
|
string(3) "Foo"
|
2008-05-24 13:34:22 +00:00
|
|
|
===DONE===
|