repo.or.cz
/
geany-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Windows: fix possible buffer overflows
[geany-mirror.git]
/
tests
/
ctags
/
traits.php
blob
1d1faf7aa4097362de0490b2008f5e942a78b04c
1
Tests
for
traits
2
3
Expected output is
4
5
traits
:
6
tBar
7
tFoo
8
9
classes
:
10
A
11
B
12
13
functions
:
14
__construct
[
A
]
15
__construct
[
B
]
16
stuff
[
tFoo
]
17
stuff
[
tBar
]
18
19
<
?php
20
21
trait tFoo
{
22
public function
stuff
() {
23
// ...
24
}
25
}
26
27
class
A
{
28
use
tFoo
;
29
30
public function
__construct
() {
31
// ...
32
}
33
}
34
35
trait tBar
{
36
protected function
stuff
(
$arg1
,
$arg2
) {
37
// ...
38
}
39
}
40
41
class
B
{
42
use
tBar
;
43
44
public function
__construct
(
$p
) {
45
// ...
46
}
47
}