mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-08-03 14:07:23 +02:00
resolve merge conflict
This commit is contained in:
@@ -92,7 +92,7 @@ class ZipFile implements ZipFileInterface
|
|||||||
public function openFile($filename)
|
public function openFile($filename)
|
||||||
{
|
{
|
||||||
if (!file_exists($filename)) {
|
if (!file_exists($filename)) {
|
||||||
throw new InvalidArgumentException("File $filename does not exist.");
|
throw new ZipException("File $filename does not exist.");
|
||||||
}
|
}
|
||||||
if (!($handle = @fopen($filename, 'rb'))) {
|
if (!($handle = @fopen($filename, 'rb'))) {
|
||||||
throw new ZipException("File $filename can't open.");
|
throw new ZipException("File $filename can't open.");
|
||||||
|
@@ -606,7 +606,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage Glob pattern is empty
|
* @expectedExceptionMessage The glob pattern is not specified
|
||||||
*/
|
*/
|
||||||
public function testDeleteFromGlobFailNull()
|
public function testDeleteFromGlobFailNull()
|
||||||
{
|
{
|
||||||
@@ -616,7 +616,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage Glob pattern is empty
|
* @expectedExceptionMessage The glob pattern is not specified
|
||||||
*/
|
*/
|
||||||
public function testDeleteFromGlobFailEmpty()
|
public function testDeleteFromGlobFailEmpty()
|
||||||
{
|
{
|
||||||
@@ -657,7 +657,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage Regex pattern is empty.
|
* @expectedExceptionMessage The regex pattern is not specified
|
||||||
*/
|
*/
|
||||||
public function testDeleteFromRegexFailNull()
|
public function testDeleteFromRegexFailNull()
|
||||||
{
|
{
|
||||||
@@ -667,7 +667,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage Regex pattern is empty.
|
* @expectedExceptionMessage The regex pattern is not specified
|
||||||
*/
|
*/
|
||||||
public function testDeleteFromRegexFailEmpty()
|
public function testDeleteFromRegexFailEmpty()
|
||||||
{
|
{
|
||||||
@@ -1292,7 +1292,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage The input directory is not specified
|
* @expectedExceptionMessage Input dir is null
|
||||||
* @throws ZipException
|
* @throws ZipException
|
||||||
*/
|
*/
|
||||||
public function testAddDirNullDirname()
|
public function testAddDirNullDirname()
|
||||||
@@ -1313,7 +1313,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\ZipException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage does not exist
|
* @expectedExceptionMessage does not exist
|
||||||
* @throws ZipException
|
* @throws ZipException
|
||||||
*/
|
*/
|
||||||
@@ -1325,7 +1325,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage The input directory is not specified
|
* @expectedExceptionMessage Input dir is null
|
||||||
* @throws ZipException
|
* @throws ZipException
|
||||||
*/
|
*/
|
||||||
public function testAddDirRecursiveNullDirname()
|
public function testAddDirRecursiveNullDirname()
|
||||||
@@ -1358,7 +1358,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage The input directory is not specified
|
* @expectedExceptionMessage Input dir is null
|
||||||
* @throws ZipException
|
* @throws ZipException
|
||||||
*/
|
*/
|
||||||
public function testAddFilesFromGlobNull()
|
public function testAddFilesFromGlobNull()
|
||||||
@@ -1413,7 +1413,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage The input directory is not specified
|
* @expectedExceptionMessage Input dir is null
|
||||||
* @throws ZipException
|
* @throws ZipException
|
||||||
*/
|
*/
|
||||||
public function testAddFilesFromGlobRecursiveNull()
|
public function testAddFilesFromGlobRecursiveNull()
|
||||||
@@ -1544,7 +1544,7 @@ class ZipFileTest extends ZipTestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \PhpZip\Exception\ZipException
|
* @expectedException \PhpZip\Exception\InvalidArgumentException
|
||||||
* @expectedExceptionMessage does not exist
|
* @expectedExceptionMessage does not exist
|
||||||
* @throws ZipException
|
* @throws ZipException
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user