mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-10-10 04:44:28 +02:00
@@ -31,18 +31,18 @@ class ZipStreamOpenTest extends TestCase
|
||||
{
|
||||
if ($resource === null || $resource === false) {
|
||||
static::markTestSkipped('skip resource');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ($exceptionClass !== null) {
|
||||
$this->setExpectedException(
|
||||
$exceptionClass,
|
||||
$this->expectException(
|
||||
$exceptionClass
|
||||
);
|
||||
$this->expectExceptionMessage(
|
||||
$exceptionMessage
|
||||
);
|
||||
}
|
||||
|
||||
static::assertInternalType('resource', $resource);
|
||||
static::assertIsResource($resource);
|
||||
|
||||
$zipFile = new ZipFile();
|
||||
$zipFile->openFromStream($resource);
|
||||
|
Reference in New Issue
Block a user