From 9889475554796cd877de58045ffbe9ec5aaf6c7b Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Thu, 9 Jan 2025 03:44:45 -0300 Subject: [PATCH] chore: mark validation test as skipped if haven't poppler-utils Signed-off-by: Vitor Mattos --- tests/Unit/Service/FileServiceTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Unit/Service/FileServiceTest.php b/tests/Unit/Service/FileServiceTest.php index e14967d7a..70a4ea79b 100644 --- a/tests/Unit/Service/FileServiceTest.php +++ b/tests/Unit/Service/FileServiceTest.php @@ -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);