Skip to content

Commit 455b3ef

Browse files
committed
3 prefix test
1 parent 3155500 commit 455b3ef

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

WordPress/Tests/NamingConventions/PrefixAllGlobalsUnitTest.1.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,3 +674,6 @@ class WP_Atom_Server {
674674
}
675675

676676
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[]
677+
678+
// phpcs:set WordPress.NamingConventions.PrefixAllGlobals prefixes[] ^%&
679+
function ^%&_do_something() {}

WordPress/Tests/NamingConventions/PrefixAllGlobalsUnitTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getErrorList( $testFile = 'PrefixAllGlobalsUnitTest.1.inc' ) {
3434
switch ( $testFile ) {
3535
case 'PrefixAllGlobalsUnitTest.1.inc':
3636
return array(
37-
1 => 8, // 2 x error for blocked prefix passed. 4 x error for short prefixes. 2 x no prefix.
37+
1 => 9, // 2 x error for blocked prefix passed. 5 x error for short prefixes. 2 x no prefix.
3838
10 => 1,
3939
18 => 1,
4040
21 => 1,
@@ -96,6 +96,7 @@ public function getErrorList( $testFile = 'PrefixAllGlobalsUnitTest.1.inc' ) {
9696
616 => 1,
9797
617 => 1,
9898
633 => 1,
99+
679 => 1,
99100
);
100101

101102
case 'PrefixAllGlobalsUnitTest.4.inc':

0 commit comments

Comments
 (0)