1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-10 01:16:29 +02:00
This commit is contained in:
wapplay
2018-10-09 10:17:54 +03:00
parent f9e6a73587
commit e1866215a6
11 changed files with 24 additions and 14 deletions

View File

@@ -33,6 +33,7 @@ class ZipFileTest extends ZipTestCase
*/
public function testOpenFileCantOpen()
{
/** @noinspection PhpComposerExtensionStubsInspection */
if (0 === posix_getuid()) {
$this->markTestSkipped('Skip the test for a user with root privileges');
}
@@ -152,6 +153,7 @@ class ZipFileTest extends ZipTestCase
if (!extension_loaded("gd")) {
$this->markTestSkipped('not extension gd');
}
/** @noinspection PhpComposerExtensionStubsInspection */
$zipFile->openFromStream(imagecreate(1, 1));
}
@@ -1057,6 +1059,7 @@ class ZipFileTest extends ZipTestCase
*/
public function testExtractFail3()
{
/** @noinspection PhpComposerExtensionStubsInspection */
if (0 === posix_getuid()) {
$this->markTestSkipped('Skip the test for a user with root privileges');
}
@@ -1275,6 +1278,7 @@ class ZipFileTest extends ZipTestCase
*/
public function testAddFileCantOpen()
{
/** @noinspection PhpComposerExtensionStubsInspection */
if (posix_getuid() === 0) {
$this->markTestSkipped('Skip the test for a user with root privileges');
}
@@ -1588,6 +1592,7 @@ class ZipFileTest extends ZipTestCase
*/
public function testSaveAsFileNotWritable()
{
/** @noinspection PhpComposerExtensionStubsInspection */
if (0 === posix_getuid()) {
$this->markTestSkipped('Skip the test for a user with root privileges');
}