mirror of
https://github.com/php/php-src.git
synced 2024-10-17 14:32:37 +00:00
26 lines
229 B
Plaintext
26 lines
229 B
Plaintext
|
--TEST--
|
||
|
Using traits to implement interface
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
trait foo {
|
||
|
public function abc() {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
interface baz {
|
||
|
public function abc();
|
||
|
}
|
||
|
|
||
|
class bar implements baz {
|
||
|
use foo;
|
||
|
|
||
|
}
|
||
|
|
||
|
new bar;
|
||
|
print "OK\n";
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
OK
|