xref: /PHP-7.1/Zend/tests/lsb_013.phpt (revision 166266df)
1--TEST--
2ZE2 Late Static Binding is_callable() and static::method()
3--FILE--
4<?php
5
6class Test1 {
7	static function test() {
8		var_dump(is_callable("static::ok"));
9		var_dump(is_callable(array("static","ok")));
10	}
11}
12
13class Test2 extends Test1 {
14	static function ok() {
15	}
16}
17Test1::test();
18Test2::test();
19?>
20--EXPECT--
21bool(false)
22bool(false)
23bool(true)
24bool(true)
25