Skip to content

Commit

Permalink
Fix. Code. Unit test fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Mar 5, 2024
1 parent 78fcbff commit 6b03107
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/Cases/Common/NoPHPCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ public function testHasPHPCodeBadFileOpenSomewhere()

public function testHasPHPCodeBadFileShortOpenTag()
{
$verdict = $this->heuristic_scanner->scanFile($this->files_list[__FUNCTION__], $this->current_dir);
$this->assertEquals('INFECTED', $verdict->status);
$this->assertEquals('SUSPICIOUS', $verdict->severity);
if ( ini_get('short_open_tag') ) {
$verdict = $this->heuristic_scanner->scanFile($this->files_list[__FUNCTION__], $this->current_dir);
$this->assertEquals('INFECTED', $verdict->status);
$this->assertEquals('SUSPICIOUS', $verdict->severity);
}
}

public function testHasPHPCodeGoodFile()
Expand Down

0 comments on commit 6b03107

Please sign in to comment.