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/003-add-all.phpt

14 lines
309 B
PHP

--TEST--
Test Collection::addAll().
--FILE--
<?php
$array = [3, 7, 5, 6, 1, 2];
$collection = Collection::init([6, 1, 2]);
$collection2 = Collection::init([3, 7, 5]);
$collection2->addAll($collection);
if ($array != $collection2->toArray()) {
echo 'Collection::addAll() failed.', PHP_EOL;
}
?>
--EXPECT--