php-src/ext/zip/tests/oo_count.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

23 lines
313 B
PHP

--TEST--
ziparchive::count()
--EXTENSIONS--
zip
--FILE--
<?php
$dirname = __DIR__ . '/';
$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