1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Files
archived-php-src/Zend/tests/traits/bugs/case-sensitive.phpt
T
Nikita Popov d9219f997d Enable better trait conflict error message
I don't think there is any reason to disable this anymore,
at least all the messages generated in tests look correct and
more useful.
2020-03-10 16:19:11 +01:00

24 lines
417 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--
Fatal error: Trait method B::M1 has not been applied as MyClass::M1, because of collision with A::M1 in %s on line %d