xref: /PHP-7.0/Zend/tests/closure_045.phpt (revision bc2ff4a2)
1--TEST--
2Closure 045: Closures created in static methods are not implicitly static
3--FILE--
4<?php
5
6class A {
7    static function foo() {
8        return function () {};
9    }
10}
11
12$a = A::foo();
13$a->bindTo(new A);
14
15echo "Done.\n";
16
17--EXPECTF--
18Done.
19