Annotation of embedaddon/php/ext/reflection/tests/bug26695.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Reflection Bug #26695 (Reflection API does not recognize mixed-case class hints)
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class Foo {
                      7: }
                      8: 
                      9: class Bar {
                     10:   function demo(foo $f) {
                     11:   }
                     12: }
                     13: 
                     14: $class = new ReflectionClass('bar');
                     15: $methods = $class->getMethods();
                     16: $params = $methods[0]->getParameters();
                     17: 
                     18: $class = $params[0]->getClass();
                     19: 
                     20: var_dump($class->getName());
                     21: ?>
                     22: ===DONE===
                     23: --EXPECT--
                     24: string(3) "Foo"
                     25: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>