php-src/Zend/tests/traits/interface_001.phpt

26 lines
229 B
Plaintext
Raw Normal View History

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