File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
traits /
bugs /
alias01.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:36 2012 UTC (12 years, 2 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
--TEST--
Aliases are applied to the correct methods, and only to them.
--FILE--
<?php
trait T1 {
function m1() { echo "T:m1\n"; }
function m2() { echo "T:m2\n"; }
}
class C1 {
use T1 { m1 as a1; }
}
$o = new C1;
$o->m1();
$o->a1();
$o->m2();
$o->a2();
?>
--EXPECTF--
T:m1
T:m1
T:m2
Fatal error: Call to undefined method C1::a2() in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>