summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/precedence_unknown_class.phpt
blob: 212cba34e47abe2b8912d580581df505e6e2398d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Unknown class in absolute trait precedence reference
--FILE--
<?php

trait T {}
class C {
    use T {
        WrongClass::method insteadof C;
    }
}

?>
--EXPECTF--
Fatal error: Could not find trait WrongClass in %s on line %d