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.
25 lines
563 B
PHP
25 lines
563 B
PHP
--TEST--
|
|
Check for problems with case sensitivity in compositions
|
|
--FILE--
|
|
<?php
|
|
error_reporting(E_ALL);
|
|
|
|
trait A {
|
|
public function M1() {}
|
|
public function M2() {}
|
|
}
|
|
|
|
trait B {
|
|
public function M1() {}
|
|
public function M2() {}
|
|
}
|
|
|
|
class MyClass {
|
|
use A;
|
|
use B;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Trait method M1 has not been applied, because there are collisions with other trait methods on MyClass in %s on line %d
|
|
|
|
Warning: Trait method M2 has not been applied, because there are collisions with other trait methods on MyClass in %s on line %d
|