summaryrefslogtreecommitdiff
path: root/Zend/tests/grammar/semi_reserved_010.phpt
blob: 5bfa8c605e1ba6257b820c4e2190d844aa07a531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--TEST--
Edge case: T_STRING<insteadof> insteadof T_STRING<?>
--FILE--
<?php

trait TraitA
{
    public static function insteadof(){ echo __METHOD__, PHP_EOL; }
}

trait TraitB
{
    public static function insteadof(){ echo __METHOD__, PHP_EOL; }
}

class Foo
{
    use TraitA , TraitB {
        TraitB::insteadof
            insteadof TraitA;
    }
}

Foo::insteadof();

echo PHP_EOL, "Done", PHP_EOL;
--EXPECTF--
TraitB::insteadof

Done