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.
ext-collections/tests/002-init.phpt

14 lines
331 B
PHP

--TEST--
Test Collection::init().
--FILE--
<?php
$array = ['a' => 'b'];
$collection = Collection::init($array);
$collection1 = Collection::init($collection);
$collection2 = Collection::init();
if ($array != $collection1->toArray() || $collection2->toArray() != []) {
echo 'Collection::init() failed.', PHP_EOL;
}
?>
--EXPECT--