Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Nov 24, 2024
1 parent b49b190 commit f8ac867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
query_posts( 'cat=3' );
wp_reset_query();

parse_str( 'first=value&arr[]=foo+bar&arr[]=baz' );

$str = <<<EOD
Example of string
spanning multiple lines
using heredoc syntax.
EOD;

parse_str( 'first=value&arr[]=foo+bar&arr[]=baz' );

Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public function test_run_with_errors() {
$this->assertArrayHasKey( 'code', $errors['load.php'][12][5][0] );
$this->assertEquals( 'WordPress.WP.DeprecatedFunctions.the_author_emailFound', $errors['load.php'][12][5][0]['code'] );

// Check for PluginCheck.CodeAnalysis.RequiredFunctionParameters.Missing error on Line no 28 and column no at 1.
$this->assertSame( 'PluginCheck.CodeAnalysis.RequiredFunctionParameters.Missing', $errors['load.php'][28][1][0]['code'] );
// Check for PluginCheck.CodeAnalysis.RequiredFunctionParameters.Missing error on Line no 34 and column no at 1.
$this->assertSame( 'PluginCheck.CodeAnalysis.RequiredFunctionParameters.Missing', $errors['load.php'][34][1][0]['code'] );

// Check for WordPress.Security.ValidatedSanitizedInput warnings on Line no 15 and column no at 27.
$this->assertCount( 1, wp_list_filter( $warnings['load.php'][15][27], array( 'code' => 'WordPress.Security.ValidatedSanitizedInput.InputNotValidated' ) ) );
Expand Down

0 comments on commit f8ac867

Please sign in to comment.