1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00
Files
archived-php-src/Zend/tests/traits/interface_002.phpt
2020-02-03 22:52:20 +01:00

25 lines
411 B
PHP

--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