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