Skip to content

Commit

Permalink
Use supported phpunit method
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Jul 22, 2024
1 parent 77b4fc7 commit baf43c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testWriteBlocklog() {
$file_content = file_get_contents( $waf_log_path );

$this->assertTrue( file_exists( $waf_log_path ) );
$this->assertStringContainsString( '{"rule_id":"1337","reason":"test block"', $file_content );
$this->assertFalse( strpos( $file_content, '{"rule_id":"1337","reason":"test block"' ) === false );

unlink( $waf_log_path );
}
Expand Down

0 comments on commit baf43c2

Please sign in to comment.