diff --git a/WordPress/Tests/DB/DirectDatabaseQueryUnitTest.inc b/WordPress/Tests/DB/DirectDatabaseQueryUnitTest.inc
index 7d80eaefed..f4ba8bb8dd 100644
--- a/WordPress/Tests/DB/DirectDatabaseQueryUnitTest.inc
+++ b/WordPress/Tests/DB/DirectDatabaseQueryUnitTest.inc
@@ -341,10 +341,10 @@ function method_names_are_caseinsensitive() {
// phpcs:set WordPress.DB.DirectDatabaseQuery customCacheDeleteFunctions[] MY_cachedeL
function cache_customA() {
global $wpdb;
- $quux = MY_cacheget( 'quux' );
+ $quux = my_cacheget( 'quux' );
if ( false !== $quux ) {
$wpdb->get_results( 'SELECT X FROM Y' ); // Warning direct DB call.
- my_cacheSet( 'key', 'group' );
+ my_cacheset( 'key', 'group' );
}
}
@@ -353,14 +353,14 @@ function cache_customB() {
$quux = my_cacheget( 'quux' );
if ( false !== $quux ) {
$wpdb->get_results( 'SELECT X FROM Y' ); // Warning direct DB call.
- my_other_CacheSet( 'key', 'group' );
+ my_other_cacheset( 'key', 'group' );
}
}
function cache_customC() {
global $wpdb;
$wpdb->query( 'SELECT X FROM Y' ); // Warning direct DB call.
- my_cacheDEL( 'key', 'group' );
+ my_cachedel( 'key', 'group' );
}
// phpcs:set WordPress.DB.DirectDatabaseQuery customCacheSetFunctions[] my_cacheSet
@@ -371,7 +371,7 @@ function cache_customD() {
$quux = my_cacheget( 'quux' );
if ( false !== $quux ) {
$wpdb->get_results( 'SELECT X FROM Y' ); // Warning direct DB call.
- my_cacHeset( 'key', 'group' );
+ my_cacheset( 'key', 'group' );
}
}
diff --git a/WordPress/Tests/PHP/NoSilencedErrorsUnitTest.inc b/WordPress/Tests/PHP/NoSilencedErrorsUnitTest.inc
index f007d150bd..ff46a6be65 100644
--- a/WordPress/Tests/PHP/NoSilencedErrorsUnitTest.inc
+++ b/WordPress/Tests/PHP/NoSilencedErrorsUnitTest.inc
@@ -73,7 +73,7 @@ $files1 = @ & scandir($dir); // Bad.
/*
* The custom allowed functions list will be respected even when `usePHPFunctionsList` is set to false.
*/
-// phpcs:set WordPress.PHP.NoSilencedErrors customAllowedFunctionsList[] fgetcsv,hex2bin
+// phpcs:set WordPress.PHP.NoSilencedErrors customAllowedFunctionsList[] fgetCsv,hEx2bin
while ( ( $csvdata = @fgetcsv( $handle, 2000, $separator ) ) !== false ) {}
echo @some_userland_function( $param ); // Bad.
$decoded = @hex2bin( $data );
diff --git a/WordPress/Tests/Security/EscapeOutputUnitTest.1.inc b/WordPress/Tests/Security/EscapeOutputUnitTest.1.inc
index b61932f6c5..aa5c1c8fb4 100644
--- a/WordPress/Tests/Security/EscapeOutputUnitTest.1.inc
+++ b/WordPress/Tests/Security/EscapeOutputUnitTest.1.inc
@@ -657,7 +657,7 @@ echo '';
echo ''; // Bad.
// phpcs:set WordPress.Security.EscapeOutput customPrintingFunctions[] TO_SCREEN,my_print
-to_scReen( $var1, esc_attr( $var2 ) ); // Bad x 1.
-my_prinT( $var1, $var2 ); // Bad x 2.
+to_screen( $var1, esc_attr( $var2 ) ); // Bad x 1.
+my_print( $var1, $var2 ); // Bad x 2.
// phpcs:set WordPress.Security.EscapeOutput customEscapingFunctions[]
diff --git a/WordPress/Tests/Security/NonceVerificationUnitTest.1.inc b/WordPress/Tests/Security/NonceVerificationUnitTest.1.inc
index 3e2946c422..8037c21b57 100644
--- a/WordPress/Tests/Security/NonceVerificationUnitTest.1.inc
+++ b/WordPress/Tests/Security/NonceVerificationUnitTest.1.inc
@@ -489,7 +489,7 @@ enum MyEnum {
// phpcs:set WordPress.Security.NonceVerification customNonceVerificationFunctions[] MY_nonce_check
// phpcs:set WordPress.Security.NonceVerification customUnslashingSanitizingFunctions[] do_sometHING
function foo_6() {
- my_noncE_cheCk( do_soMeThinG( $_POST['tweet'] ) ); // OK.
+ my_nonce_check( do_something( $_POST['tweet'] ) ); // OK.
}
// phpcs:set WordPress.Security.NonceVerification customUnslashingSanitizingFunctions[]
// phpcs:set WordPress.Security.NonceVerification customNonceVerificationFunctions[]
diff --git a/WordPress/Tests/Security/ValidatedSanitizedInputUnitTest.1.inc b/WordPress/Tests/Security/ValidatedSanitizedInputUnitTest.1.inc
index 054ad37ac6..8b6f5b29b9 100644
--- a/WordPress/Tests/Security/ValidatedSanitizedInputUnitTest.1.inc
+++ b/WordPress/Tests/Security/ValidatedSanitizedInputUnitTest.1.inc
@@ -513,16 +513,16 @@ function test_this() {
// phpcs:set WordPress.Security.ValidatedSanitizedInput customSanitizingFunctions[] sanitize_color,sanitize_TWITTER_handle
- $abc = sanitize_cOlor( wp_unslash( $_POST['abc_field'] ) ); // OK.
- $abc = sanitize_facebook_ID( wp_unslash( $_POST['abc_field'] ) ); // Bad x1 - sanitize.
- $abc = sanitize_twitteR_handle( $_POST['abc_field'] ); // Bad x1 - unslash.
+ $abc = sanitize_color( wp_unslash( $_POST['abc_field'] ) ); // OK.
+ $abc = sanitize_facebook_id( wp_unslash( $_POST['abc_field'] ) ); // Bad x1 - sanitize.
+ $abc = sanitize_twitter_handle( $_POST['abc_field'] ); // Bad x1 - unslash.
// phpcs:set WordPress.Security.ValidatedSanitizedInput customSanitizingFunctions[] sanitize_color,sanitize_facebook_ID
// phpcs:set WordPress.Security.ValidatedSanitizedInput customUnslashingSanitizingFunctions[] sanITize_twitter_handle
- $abc = sanitizE_coLor( wp_unslash( $_POST['abc_field'] ) ); // OK.
- $abc = sanitize_facebook_ID( wp_unslash( $_POST['abc_field'] ) ); // OK.
- $abc = sanitize_TWITTER_haNdle( $_POST['abc_field'] ); // OK.
+ $abc = sanitize_color( wp_unslash( $_POST['abc_field'] ) ); // OK.
+ $abc = sanitize_facebook_id( wp_unslash( $_POST['abc_field'] ) ); // OK.
+ $abc = sanitize_twitter_handle( $_POST['abc_field'] ); // OK.
// phpcs:set WordPress.Security.ValidatedSanitizedInput customSanitizingFunctions[]
// phpcs:set WordPress.Security.ValidatedSanitizedInput customUnslashingSanitizingFunctions[]