[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
bem
/
word
/
vendor
/
phpoffice
/
common
/
tests
/
Common
/
Tests
/
_includes
/
[
Home
]
File: TestHelperZip.php
<?php namespace PhpOffice\Common\Tests; class TestHelperZip { public static function assertFileExists($fileZip, $path) { $oZip = new \ZipArchive; if ($oZip->open($fileZip) !== true) { return false; } if ($oZip->statName($path) === false) { return false; } return true; } public static function assertFileContent($fileZip, $path, $content) { $oZip = new \ZipArchive; if ($oZip->open($fileZip) !== true) { return false; } $zipFileContent = $oZip->getFromName($path); if ($zipFileContent === false) { return false; } if ($zipFileContent != $content) { return false; } return true; } }