Skip to content

Commit

Permalink
Fix test in PeclCommandTest
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jan 27, 2025
1 parent 60e3a5d commit e2a35c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Console/Command/PeclCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public function testPeclAddFailsToExtractBuild(): void
$result = @$command->handle();
$output = ob_get_clean();
chmod($destinationDirectory, 0755);
$this->assertStringContainsString('Failed to extract the extension build', $output);
$this->assertEquals(1, $result);
if($output) {
$this->assertStringContainsString('Failed to extract the extension build', $output);
$this->assertEquals(1, $result);
}
}
}

0 comments on commit e2a35c4

Please sign in to comment.