Annotation of embedaddon/php/ext/spl/tests/spl_002.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SPL: Countable
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class Test implements Countable
                      7: {
                      8:        function count()
                      9:        {
                     10:                return 4;
                     11:        }
                     12: };
                     13: 
                     14: $a = new Test;
                     15: 
                     16: var_dump(count($a));
                     17: 
                     18: ?>
                     19: ===DONE===
                     20: --EXPECT--
                     21: int(4)
                     22: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>