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/008-contains-all.phpt

13 lines
305 B
PHP

--TEST--
Test Collection::containsAll().
--FILE--
<?php
$array = [[], 1, 't'];
$array1 = [2, ['t'], 5];
$collection = Collection::init([1, 2, 't', [], 5]);
if (!$collection->containsAll($array) || $collection->containsAll($array1)) {
echo 'Collection::containsAll() failed.', PHP_EOL;
}
?>
--EXPECT--