Skip to content

Commit adbc85c

Browse files
committed
Remove global namespace prefix from tests, it’s inconsistent
1 parent 90ab7c3 commit adbc85c

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

tests/phpunit/tests/export/uses/constructor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function test_new_class() {
2121
'name' => '__construct',
2222
'line' => 3,
2323
'end_line' => 3,
24-
'class' => '\WP_Query',
24+
'class' => 'WP_Query',
2525
'static' => false,
2626
)
2727
);
@@ -32,7 +32,7 @@ public function test_new_class() {
3232
'name' => '__construct',
3333
'line' => 6,
3434
'end_line' => 6,
35-
'class' => '\My_Class',
35+
'class' => 'My_Class',
3636
'static' => false,
3737
)
3838
);
@@ -50,7 +50,7 @@ public function test_new_self() {
5050
'name' => '__construct',
5151
'line' => 12,
5252
'end_line' => 12,
53-
'class' => '\My_Class',
53+
'class' => 'My_Class',
5454
'static' => false,
5555
)
5656
);
@@ -68,7 +68,7 @@ public function test_new_parent() {
6868
'name' => '__construct',
6969
'line' => 16,
7070
'end_line' => 16,
71-
'class' => '\Parent_Class',
71+
'class' => 'Parent_Class',
7272
'static' => false,
7373
)
7474
);

tests/phpunit/tests/export/uses/methods.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function test_static_methods() {
2121
'name' => 'static_method',
2222
'line' => 3,
2323
'end_line' => 3,
24-
'class' => '\My_Class',
24+
'class' => 'My_Class',
2525
'static' => true,
2626
)
2727
);
@@ -32,7 +32,7 @@ public function test_static_methods() {
3232
'name' => 'another_method',
3333
'line' => 8,
3434
'end_line' => 8,
35-
'class' => '\Another_Class',
35+
'class' => 'Another_Class',
3636
'static' => true,
3737
)
3838
);
@@ -44,7 +44,7 @@ public function test_static_methods() {
4444
'name' => 'do_static_stuff',
4545
'line' => 16,
4646
'end_line' => 16,
47-
'class' => '\Another_Class',
47+
'class' => 'Another_Class',
4848
'static' => true,
4949
)
5050
);
@@ -56,7 +56,7 @@ public function test_static_methods() {
5656
'name' => 'do_stuff',
5757
'line' => 17,
5858
'end_line' => 17,
59-
'class' => '\My_Class',
59+
'class' => 'My_Class',
6060
'static' => true,
6161
)
6262
);
@@ -68,7 +68,7 @@ public function test_static_methods() {
6868
'name' => 'do_parental_stuff',
6969
'line' => 19,
7070
'end_line' => 19,
71-
'class' => '\Parent_Class',
71+
'class' => 'Parent_Class',
7272
'static' => true,
7373
)
7474
);
@@ -107,7 +107,7 @@ public function test_instance_methods() {
107107
'name' => 'go',
108108
'line' => 18,
109109
'end_line' => 18,
110-
'class' => '\My_Class',
110+
'class' => 'My_Class',
111111
'static' => false,
112112
)
113113
);

tests/phpunit/tests/export/uses/nested.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function test_top_function_uses_correct() {
4040
'name' => 'do_things',
4141
'line' => 16,
4242
'end_line' => 16,
43-
'class' => '\My_Class',
43+
'class' => 'My_Class',
4444
'static' => true,
4545
)
4646
);
@@ -60,7 +60,7 @@ public function test_top_function_uses_correct() {
6060
'name' => 'static_method',
6161
'line' => 11,
6262
'end_line' => 11,
63-
'class' => '\My_Class',
63+
'class' => 'My_Class',
6464
'static' => true,
6565
)
6666
);
@@ -86,7 +86,7 @@ public function test_nested_function_uses_correct() {
8686
'name' => 'static_method',
8787
'line' => 11,
8888
'end_line' => 11,
89-
'class' => '\My_Class',
89+
'class' => 'My_Class',
9090
'static' => true,
9191
)
9292
);
@@ -132,7 +132,7 @@ public function test_method_uses_correct() {
132132
'name' => 'do_it',
133133
'line' => 23,
134134
'end_line' => 23,
135-
'class' => '\My_Class',
135+
'class' => 'My_Class',
136136
'static' => false,
137137
)
138138
);
@@ -164,7 +164,7 @@ public function test_method_uses_correct() {
164164
'name' => 'a_method',
165165
'line' => 29,
166166
'end_line' => 29,
167-
'class' => '\My_Class',
167+
'class' => 'My_Class',
168168
'static' => true,
169169
)
170170
);
@@ -190,7 +190,7 @@ public function test_nested_function_in_method_uses_correct() {
190190
'name' => 'a_method',
191191
'line' => 29,
192192
'end_line' => 29,
193-
'class' => '\My_Class',
193+
'class' => 'My_Class',
194194
'static' => true,
195195
)
196196
);
@@ -201,7 +201,7 @@ public function test_nested_function_in_method_uses_correct() {
201201
'name' => 'do_it',
202202
'line' => 23,
203203
'end_line' => 23,
204-
'class' => '\My_Class',
204+
'class' => 'My_Class',
205205
'static' => false,
206206
)
207207
);

0 commit comments

Comments
 (0)