1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Files
archived-php-src/Zend/tests/traits/bugs/interfaces.phpt
T

20 lines
344 B
PHP

--TEST--
Make sure trait does not implement an interface.
--FILE--
<?php
error_reporting(E_ALL);
interface MyInterface {
public function a();
}
trait THello implements MyInterface {
public function a() {
echo 'A';
}
}
?>
--EXPECTF--
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in %s on line %d