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
Plaintext
Raw Normal View History

2018-03-23 13:38:34 +00:00
--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);
2018-08-28 14:11:09 +00:00
if ($array != $collection2->toArray()) {
2018-03-23 13:38:34 +00:00
echo 'Collection::addAll() failed.', PHP_EOL;
2018-08-28 14:11:09 +00:00
}
2018-03-23 13:38:34 +00:00
?>
--EXPECT--