mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
36 lines
455 B
PHP
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===
|