From 7d9ac61c5acc0962aba3e54faf88c3f4c6c4cc88 Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Fri, 22 Nov 2024 10:37:05 +0545 Subject: [PATCH] Rename variables mentioned in lint results --- .../tests/Checker/Checks/File_Type_Check_Tests.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/tests/Checker/Checks/File_Type_Check_Tests.php b/tests/phpunit/tests/Checker/Checks/File_Type_Check_Tests.php index 72a04febe..01b245cde 100644 --- a/tests/phpunit/tests/Checker/Checks/File_Type_Check_Tests.php +++ b/tests/phpunit/tests/Checker/Checks/File_Type_Check_Tests.php @@ -139,19 +139,19 @@ public function test_run_with_duplicated_named_errors() { $check = new File_Type_Check(); // Use reflection to make protected method accessible. - $reflection = new ReflectionClass( $check ); - $checkFilesMethod = $reflection->getMethod( 'look_for_badly_named_files' ); - $checkFilesMethod->setAccessible( true ); + $reflection = new ReflectionClass( $check ); + $check_files_method = $reflection->getMethod( 'look_for_badly_named_files' ); + $check_files_method->setAccessible( true ); // Define the custom file list with duplicate names as they would appear in a plugin directory. - $customFiles = array( + $custom_files = array( UNIT_TESTS_PLUGIN_DIR . 'test-plugin-file-type-badly-named-files-errors/custom-file.php', UNIT_TESTS_PLUGIN_DIR . 'test-plugin-file-type-badly-named-files-errors/Custom-File.php', UNIT_TESTS_PLUGIN_DIR . 'test-plugin-file-type-badly-named-files-errors/custom-FILE.php', ); // Invoke method with the Check_Result instance and custom file list. - $result = $checkFilesMethod->invoke( $check, $check_result, $customFiles ); + $result = $check_files_method->invoke( $check, $check_result, $custom_files ); $errors = $check_result->get_errors();