diff --git a/EMS/submission-bundle/tests/Functional/Handler/Chained/PdfZipSftpHandlersTest.php b/EMS/submission-bundle/tests/Functional/Handler/Chained/PdfZipSftpHandlersTest.php index 51f745de5..8e51fe1a4 100644 --- a/EMS/submission-bundle/tests/Functional/Handler/Chained/PdfZipSftpHandlersTest.php +++ b/EMS/submission-bundle/tests/Functional/Handler/Chained/PdfZipSftpHandlersTest.php @@ -72,7 +72,9 @@ public function testPdfZipSftpChain(): void \file_put_contents($this->tempFile, $sftpHandleResponse->getTransportedFiles()[0]['contents']); $zip = new \ZipArchive(); - $zip->open($this->tempFile); + $this->assertTrue(\filesize($this->tempFile) > 0); + $opened = $zip->open($this->tempFile, \ZipArchive::RDONLY); + $this->assertTrue($opened); $this->assertCount(1, $sftpHandleResponse->getTransportedFiles()); $this->assertEquals('chain.zip', $sftpHandleResponse->getTransportedFiles()[0]['path']);