php-src/Zend/tests/traits/interface_001.phpt
Felipe Pena c95b4ace40 - Fixed ZEND_VERIFY_ABSTRACT_CLASS order when using traits
# It's the last one now, thus the traits can be used to implement interfaces
2010-05-07 16:29:15 +00:00

26 lines
229 B
PHP

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