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/026-is-empty.phpt

13 lines
297 B
Plaintext
Raw Normal View History

--TEST--
Test Collection::isEmpty() and Collection::isNotEmpty().
--FILE--
<?php
2018-08-28 14:11:09 +00:00
if (!Collection::init()->isEmpty()) {
echo 'Collection::isEmpty() failed.', PHP_EOL;
2018-08-28 14:11:09 +00:00
}
if (!Collection::init(['foo', 'bar'])->isNotEmpty()) {
echo 'Collection::isNotEmpty() failed.', PHP_EOL;
2018-08-28 14:11:09 +00:00
}
?>
--EXPECT--