php-src/Zend/tests/closure_045.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

19 lines
246 B
PHP

--TEST--
Closure 045: Closures created in static methods are not implicitly static
--FILE--
<?php
class A {
static function foo() {
return function () {};
}
}
$a = A::foo();
$a->bindTo(new A);
echo "Done.\n";
--EXPECT--
Done.