xref: /PHP-8.3/ext/spl/tests/spl_002.phpt (revision 75a678a7)
1--TEST--
2SPL: Countable
3--FILE--
4<?php
5
6class Test implements Countable
7{
8    function count(): int
9    {
10        return 4;
11    }
12};
13
14$a = new Test;
15
16var_dump(count($a));
17
18?>
19--EXPECT--
20int(4)
21