summaryrefslogtreecommitdiff
path: root/ext/spl/tests/spl_002.phpt
blob: e8e9424a219c8490d7ab15b6ecc664ce991f7d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
SPL: Countable
--FILE--
<?php

class Test implements Countable
{
	function count()
	{
		return 4;
	}
};

$a = new Test;

var_dump(count($a));

?>
--EXPECT--
int(4)