php-src/ext/reflection/tests/bug26695.phpt
Marcus Boerger 9eebea0a45 - Fix tests
2006-03-13 22:59:36 +00:00

31 lines
499 B
PHP
Executable File

--TEST--
Reflection Bug #26695 (Reflection API does not recognize mixed-case class hints)
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
class Foo {
}
class Bar {
function demo(foo $f) {
}
}
$class = new ReflectionClass('bar');
$methods = $class->getMethods();
$params = $methods[0]->getParameters();
$class = $params[0]->getClass();
var_dump($class->getName());
?>
===DONE===
--EXPECT--
string(3) "Foo"
===DONE===
--UEXPECT--
unicode(3) "Foo"
===DONE===