summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/interface_002.phpt
blob: 462d73fbd6546e7cf1b52e765abd959584dec3d3 (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