xref: /PHP-7.0/Zend/tests/closure_050.phpt (revision f47976dd)
1--TEST--
2Closure 050: static::class in non-static closure in non-static method.
3
4--FILE--
5<?php
6
7class A {
8    function foo() {
9        $f = function() {
10            return static::class;
11        };
12        return $f();
13    }
14}
15
16class B extends A {}
17
18$b = new B;
19var_dump($b->foo());
20
21--EXPECT--
22string(1) "B"
23