mirror of
https://github.com/php/php-src.git
synced 2024-10-17 14:32:37 +00:00
b501570ab0
#Getting accustomed to the infrastructure. #Any comments are welcome, especially with regard to syntax and keywords.
19 lines
345 B
PHP
19 lines
345 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--
|
|
Fatal error: Cannot use 'MyInterface' as interface on 'THello' since it is a Trait in %s on line %d
|