1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00
Files
archived-php-src/Zend/tests/traits/bug60165b.phpt
T
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

18 lines
331 B
PHP

--TEST--
Bug #60165 (Aliasing unexisting trait should throw/trigger the exception/error)
--FILE--
<?php
trait A {
public function bar() {}
}
class MyClass {
use A {
A::nonExistent as barA;
}
}
?>
--EXPECTF--
Fatal error: An alias was defined for A::nonExistent but this method does not exist in %s on line %d