@@ -45,23 +45,20 @@ public function test_run_with_errors() {
4545 // Check for PluginCheck.CodeAnalysis.RequiredFunctionParameters.parse_str_resultMissing error on Line no 34 and column no at 1.
4646 $ this ->assertSame ( 'PluginCheck.CodeAnalysis.RequiredFunctionParameters.parse_str_resultMissing ' , $ errors ['load.php ' ][34 ][1 ][0 ]['code ' ] );
4747
48- // Check for Generic.Functions.CallTimePassByReference.NotAllowed error on Line no 38 and column no 16.
49- $ this ->assertSame ( 'Generic.Functions.CallTimePassByReference.NotAllowed ' , $ errors ['load.php ' ][38 ][16 ][0 ]['code ' ] );
50-
5148 // Check for Generic.Files.ByteOrderMark.Found error on Line no 1 and column no 1.
5249 $ this ->assertSame ( 'Generic.Files.ByteOrderMark.Found ' , $ errors ['file-with-bom.php ' ][1 ][1 ][0 ]['code ' ] );
5350
5451 // There should not be WordPress.WP.AlternativeFunctions.json_encode_json_encode error on Line no 36 and column no at 18.
5552 $ this ->assertCount ( 0 , wp_list_filter ( $ errors ['load.php ' ][36 ][18 ], array ( 'code ' => 'WordPress.WP.AlternativeFunctions.json_encode_json_encode ' ) ) );
5653
57- // There should not be WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents error on Line no 40 and column no 1.
58- $ this ->assertCount ( 0 , wp_list_filter ( $ errors ['load.php ' ][40 ][1 ], array ( 'code ' => 'WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents ' ) ) );
54+ // There should not be WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents error on Line no 38 and column no 1.
55+ $ this ->assertCount ( 0 , wp_list_filter ( $ errors ['load.php ' ][38 ][1 ], array ( 'code ' => 'WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents ' ) ) );
5956
60- // There should not be WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents error on Line no 41 and column no 1.
61- $ this ->assertCount ( 0 , wp_list_filter ( $ errors ['load.php ' ][41 ][1 ], array ( 'code ' => 'WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents ' ) ) );
57+ // There should not be WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents error on Line no 39 and column no 1.
58+ $ this ->assertCount ( 0 , wp_list_filter ( $ errors ['load.php ' ][39 ][1 ], array ( 'code ' => 'WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents ' ) ) );
6259
63- // Check for PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound error on Line no 43 and column no at 1.
64- $ this ->assertSame ( 'PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound ' , $ errors ['load.php ' ][43 ][1 ][0 ]['code ' ] );
60+ // Check for PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound error on Line no 41 and column no at 1.
61+ $ this ->assertSame ( 'PluginCheck.CodeAnalysis.DiscouragedFunctions.load_plugin_textdomainFound ' , $ errors ['load.php ' ][41 ][1 ][0 ]['code ' ] );
6562
6663 // Check for WordPress.Security.ValidatedSanitizedInput warnings on Line no 15 and column no at 27.
6764 $ this ->assertCount ( 1 , wp_list_filter ( $ warnings ['load.php ' ][15 ][27 ], array ( 'code ' => 'WordPress.Security.ValidatedSanitizedInput.InputNotValidated ' ) ) );
0 commit comments