1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 21:11:02 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/is_callable_abstract_method.phpt
2016-07-14 21:41:41 +02:00

20 lines
267 B
PHP

--TEST--
is_callable() on abstract method via object should return false
--FILE--
<?php
abstract class A {
abstract function foo();
}
class B extends A {
function foo() {}
}
$foo = [new B, 'A::foo'];
var_dump(is_callable($foo));
?>
--EXPECT--
bool(false)