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/040-packed.phpt

13 lines
305 B
PHP

--TEST--
Test Collection::packed().
--FILE--
<?php
$case = Collection::init(['a', 'b', 'c'])->packed();
$case1 = Collection::init(['foo' => 'bar', 'baz'])->packed();
$case2 = Collection::init()->packed();
if (!$case || $case1 || $case2) {
echo 'Collection::packed() failed.', PHP_EOL;
}
?>
--EXPECT--