xref: /php-src/Zend/tests/traits/language020.phpt (revision 79d024ac)
1--TEST--
2final alias - positive test variation
3--FILE--
4<?php
5trait T1 {
6    function foo() {
7        echo "Done\n";
8    }
9}
10class C1 {
11    use T1 {
12        T1::foo as final;
13    }
14}
15class C2 extends C1 {
16    public function bar() {}
17}
18(new C2)->foo();
19?>
20--EXPECT--
21Done
22