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

1.1       misho       1: --TEST--
                      2: Bug #39884 (ReflectionParameter::getClass() throws exception for type hint self)
                      3: --FILE--
                      4: <?php
                      5: class stubParamTest
                      6: {
                      7:     function paramTest(self $param)
                      8:     {
                      9:         // nothing to do
                     10:     }
                     11: }
                     12: $test1 = new stubParamTest();
                     13: $test2 = new stubParamTest();
                     14: $test1->paramTest($test2);
                     15: $refParam = new ReflectionParameter(array('stubParamTest', 'paramTest'), 'param');
                     16: var_dump($refParam->getClass());
                     17: ?>
                     18: --EXPECT--     
                     19: object(ReflectionClass)#4 (1) {
                     20:   ["name"]=>
                     21:   string(13) "stubParamTest"
                     22: }

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