Skip to content

Commit

Permalink
test: more asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Dec 13, 2023
1 parent 11e5f6d commit 3dcd0de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 3dcd0de

Please sign in to comment.