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