summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/interface_002.phpt
blob: bc56a6d68bf73eb6e2cbe6f9ad6ba72bc5456af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Checking error message when the trait doesn't implements the interface
--FILE--
<?php

trait foo {
    public function a() {
    }
}

interface baz {
    public function abc();
}

class bar implements baz {
    use foo;

}

new bar;

?>
--EXPECTF--
Fatal error: Class bar contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (baz::abc) in %s on line %d