summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug26695.phpt
blob: 22619d4f1a1e5f6443c01a8873c3d8520d04684e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--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===