1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 21:11:02 +02:00
Files
archived-php-src/ext/zip/tests/oo_count.phpt
Peter Kokot 0eabd5231b Remove unused Git ident attributes from zip extension
$Id attributes were used with SVN. With Git most of the Git ident
attributes in source code files are not used anymore.
2018-07-27 15:49:34 +02:00

26 lines
363 B
PHP

--TEST--
ziparchive::count()
--SKIPIF--
<?php
if(!extension_loaded('zip')) die('skip');
?>
--FILE--
<?php
$dirname = dirname(__FILE__) . '/';
$file = $dirname . 'test.zip';
$zip = new ZipArchive;
if (!$zip->open($file)) {
exit('failed');
}
var_dump($zip->numFiles, count($zip), $zip->numFiles == count($zip));
?>
Done
--EXPECT--
int(4)
int(4)
bool(true)
Done