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-23 09:29:34 +00:00
|
|
|
--TEST--
|
|
|
|
Test Collection::init().
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$array = ['a' => 'b'];
|
|
|
|
$collection = Collection::init($array);
|
2018-03-24 04:22:00 +00:00
|
|
|
$collection1 = Collection::init($collection);
|
|
|
|
$collection2 = Collection::init();
|
2018-08-28 14:11:09 +00:00
|
|
|
if ($array != $collection1->toArray() || $collection2->toArray() != []) {
|
2018-03-23 09:29:34 +00:00
|
|
|
echo 'Collection::init() failed.', PHP_EOL;
|
2018-08-28 14:11:09 +00:00
|
|
|
}
|
2018-03-23 09:29:34 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|