xref: /PHP-7.3/Zend/tests/closure_055.phpt (revision b746e698)
1--TEST--
2Closure 055: self::class in static closure in static method.
3--FILE--
4<?php
5
6class A {
7    static function foo() {
8        $f = static function() {
9            return self::class;
10        };
11        return $f();
12    }
13}
14
15class B extends A {}
16
17var_dump(B::foo());
18--EXPECT--
19string(1) "A"
20