/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
traits
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/traits/language014.phpt
--TEST-- Aliasing leading to conflict should result in error message --FILE-- <?php error_reporting(E_ALL); trait Hello { public function hello() { echo 'Hello'; } } trait World { public function world() { echo ' World!'; } } class MyClass { use Hello, World { world as hello; } } $o = new MyClass(); $o->hello(); $o->world(); ?> --EXPECTF-- Fatal error: Trait method World::world has not been applied as MyClass::hello, because of collision with Hello::hello in %s on line %d
Copyright ©2k19 -
Hexid
|
Tex7ure