xref: /PHP-8.3/Zend/tests/traits/bug60165a.phpt (revision 7aacc705)
1--TEST--
2Bug #60165 (Aliasing unexisting trait should throw/trigger the exception/error)
3--FILE--
4<?php
5
6trait A {
7    public function bar() {}
8}
9
10class MyClass {
11    use A {
12        nonExistent as barA;
13    }
14}
15?>
16--EXPECTF--
17Fatal error: An alias (barA) was defined for method nonExistent(), but this method does not exist in %s on line %d
18