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
/
namespaces2.php
blob
80730d092b1f84b5b0de215bfbac810f73739f3e
1
Tests
for
namespaces
(
unbraced version
)
2
3
Expected output is
4
5
namespaces
:
6
Bar\Baz
7
Foo
8
9
classes
:
10
B
[
Bar\Baz
]
11
C
[
Foo
]
12
13
functions
:
14
__construct
[
Foo
::
C
]
15
__construct
[
Bar\Baz
::
B
]
16
a
[
Foo
]
17
a
[
Bar\Baz
]
18
b
[
Foo
]
19
c
[
Bar\Baz
::
B
]
20
d
[
Foo
::
C
]
21
22
<
?php
23
24
/* namespace "Foo" */
25
namespace
Foo
;
26
27
function
a
() {
28
return true
;
29
}
30
31
function
b
() {
32
return false
;
33
}
34
35
class
C
{
36
function
__construct
() {
37
// ...
38
}
39
40
function
d
() {
41
return
42
;
42
}
43
}
44
45
/* namespace "Bar\Baz" */
46
namespace
Bar\Baz
;
47
48
function
a
() {
49
return true
;
50
}
51
52
class
B
{
53
function
__construct
() {
54
// ...
55
}
56
57
function
c
() {
58
return
42
;
59
}
60
}