summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug60165a.phpt
blob: 245bb94e97a9174cae3c3f5f623b46c0135b9e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #60165 (Aliasing unexisting trait should throw/trigger the exception/error)
--FILE--
<?php

trait A {
    public function bar() {}
}

class MyClass {
    use A {
        nonExistent as barA;
    }
}

--EXPECTF--
Fatal error: An alias (barA) was defined for method nonExistent(), but this method does not exist in %s on line %d