xref: /PHP-7.3/Zend/tests/anon/002.phpt (revision b746e698)
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--EXPECT--
19bool(true)
20bool(true)
21