Skip to content

Commit

Permalink
chore: mark validation test as skipped if haven't poppler-utils
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Jan 9, 2025
1 parent 42137d6 commit 9889475
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Unit/Service/FileServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ private function getService(): FileService {

#[DataProvider('dataToArray')]
public function testToArray(callable $arguments, array $expected): void {
if (shell_exec('which pdfsig') === null) {
$this->markTestSkipped();
return;
}
$service = $this->getService();
if (is_callable($arguments)) {
$arguments = $arguments($this, $service);
Expand Down

0 comments on commit 9889475

Please sign in to comment.