This repository has been archived on 2020-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
2018-03-30 11:06:39 +00:00
|
|
|
--TEST--
|
2018-03-31 04:02:13 +00:00
|
|
|
Test Collection::count() and implementation of interface Countable.
|
2018-03-30 11:06:39 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$array = [1, 2, 3, 4, 5, 6];
|
|
|
|
$collection = Collection::init($array);
|
2018-08-28 14:11:09 +00:00
|
|
|
if ($collection->count() != count($array)) {
|
2018-03-30 11:06:39 +00:00
|
|
|
echo 'Collection::count() failed.', PHP_EOL;
|
2018-08-28 14:11:09 +00:00
|
|
|
}
|
|
|
|
if (count($collection) != count($array)) {
|
2018-03-31 04:02:13 +00:00
|
|
|
echo 'Test for handlers.count_elements failed.', PHP_EOL;
|
2018-08-28 14:11:09 +00:00
|
|
|
}
|
2018-03-30 11:06:39 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|