xref: /PHP-8.0/Zend/tests/anon/002.phpt (revision 7aacc705)
1--TEST--
2declare anonymous class extending another
3--FILE--
4<?php
5class A{}
6
7interface B{
8    public function method();
9}
10
11$a = new class extends A implements B {
12    public function method(){
13        return true;
14    }
15};
16
17var_dump($a instanceof A, $a instanceof B);
18?>
19--EXPECT--
20bool(true)
21bool(true)
22