xref: /PHP-8.2/ext/zip/tests/oo_count.phpt (revision 74859783)
1--TEST--
2ziparchive::count()
3--EXTENSIONS--
4zip
5--FILE--
6<?php
7
8$dirname = __DIR__ . '/';
9$file = $dirname . 'test.zip';
10
11$zip = new ZipArchive;
12if (!$zip->open($file)) {
13    exit('failed');
14}
15
16var_dump($zip->numFiles, count($zip), $zip->numFiles == count($zip));
17?>
18Done
19--EXPECT--
20int(4)
21int(4)
22bool(true)
23Done
24