xref: /PHP-8.3/ext/reflection/tests/bug29828.phpt (revision f8d79582)
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--EXPECT--
30int(1)
31bool(false)
32bool(false)
33Hello
34