diff options
author | Greg Beaver <cellog@php.net> | 2008-05-02 05:05:56 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-05-02 05:05:56 +0000 |
commit | bfbe53eeb2300c4a608ec1f85e37d89b64c5c51f (patch) | |
tree | a18d8ab6743807d11b1a9d753d6b5f95ae7406ab /ext/phar/tests/zip/phar_copy.phpt | |
parent | e0bc2b2be174c7e0bc367aa34aceb296e9691ff5 (diff) | |
download | php-git-bfbe53eeb2300c4a608ec1f85e37d89b64c5c51f.tar.gz |
refactor isTar/isZip/isPhar into isFileFormat(int format) where format is one of Phar::TAR,, Phar::ZIP, Phar::PHAR
[DOC]
Diffstat (limited to 'ext/phar/tests/zip/phar_copy.phpt')
-rw-r--r-- | ext/phar/tests/zip/phar_copy.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/tests/zip/phar_copy.phpt b/ext/phar/tests/zip/phar_copy.phpt index 199abc8305..14034c92c0 100644 --- a/ext/phar/tests/zip/phar_copy.phpt +++ b/ext/phar/tests/zip/phar_copy.phpt @@ -28,7 +28,7 @@ try $p->stopBuffering(); echo file_get_contents($p['c']->getPathName()); copy($fname, $fname2); - var_dump($p->isZip()); + var_dump($p->isFileFormat(Phar::ZIP)); $p->copy('a', $ename); } catch(Exception $e) @@ -37,7 +37,7 @@ catch(Exception $e) } ini_set('phar.readonly',1); $p2 = new Phar($fname2); -var_dump($p2->isZip()); +var_dump($p2->isFileFormat(Phar::ZIP)); echo "\n"; echo 'a: ' , file_get_contents($p2['a']->getPathName()); echo 'b: ' ,file_get_contents($p2['b']->getPathName()); |