php-src/ext/spl/tests/spl_002.phpt
2008-05-24 14:10:44 +00:00

23 lines
195 B
PHP
Executable File

--TEST--
SPL: Countable
--FILE--
<?php
class Test implements Countable
{
function count()
{
return 4;
}
};
$a = new Test;
var_dump(count($a));
?>
===DONE===
--EXPECT--
int(4)
===DONE===