xref: /PHP-7.4/ext/reflection/tests/bug29828.phpt (revision 610c7fbe)
1--TEST--
2Reflection Bug #29828 (Interfaces no longer work)
3--FILE--
4<?php
5
6interface Bla
7{
8	function bla();
9}
10
11class BlaMore implements Bla
12{
13	function bla()
14	{
15		echo "Hello\n";
16	}
17}
18
19$r = new ReflectionClass('BlaMore');
20
21var_dump(count($r->getMethods()));
22var_dump($r->getMethod('bla')->isConstructor());
23var_dump($r->getMethod('bla')->isAbstract());
24
25$o=new BlaMore;
26$o->bla();
27
28?>
29===DONE===
30--EXPECT--
31int(1)
32bool(false)
33bool(false)
34Hello
35===DONE===
36