php-src/ext/reflection/tests/bug29828.phpt
2012-10-10 10:27:49 +08:00

36 lines
455 B
PHP

--TEST--
Reflection Bug #29828 (Interfaces no longer work)
--FILE--
<?php
interface Bla
{
function bla();
}
class BlaMore implements Bla
{
function bla()
{
echo "Hello\n";
}
}
$r = new ReflectionClass('BlaMore');
var_dump(count($r->getMethods()));
var_dump($r->getMethod('bla')->isConstructor());
var_dump($r->getMethod('bla')->isAbstract());
$o=new BlaMore;
$o->bla();
?>
===DONE===
--EXPECT--
int(1)
bool(false)
bool(false)
Hello
===DONE===