mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
23 lines
195 B
Plaintext
23 lines
195 B
Plaintext
|
--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===
|