c++: Fix handling of the `final` contextual keyword
[geany-mirror.git] / tests / ctags / namespaces.php
blob6732c2cf2ea41aced738c8bff69d0e7385d4a85e
1 Tests for namespaces (braced version)
3 Expected output is
5 namespaces:
6 Bar\Baz
7 Foo
9 classes:
10 B [Bar\Baz]
11 C [Foo]
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 inRoot
22 meToo
24 <?php
26 /* namespace "Foo" */
27 namespace Foo {
28 function a() {
29 return true;
32 function b() {
33 return false;
36 class C {
37 function __construct() {
38 // ...
41 function d() {
42 return 42;
47 /* namespace "Bar\Baz" */
48 namespace Bar\Baz {
49 function a() {
50 return true;
53 class B {
54 function __construct() {
55 // ...
58 function c() {
59 return 42;
64 /* back to root namespace */
65 namespace {
66 function inRoot() {
67 return true;
70 function meToo() {
71 return true;