php-src/ext/spl/tests/spl_002.phpt
2005-12-21 22:22:33 +00:00

25 lines
259 B
PHP
Executable File

--TEST--
SPL: Countable
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
class Test implements Countable
{
function count()
{
return 4;
}
};
$a = new Test;
var_dump(count($a));
?>
===DONE===
--EXPECT--
int(4)
===DONE===