xref: /PHP-7.0/Zend/tests/anon/002.phpt (revision 49608e06)
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--EXPECTF--
19bool(true)
20bool(true)
21
22