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.
2018-04-26 13:52:31 +00:00
|
|
|
--TEST--
|
2018-09-05 10:44:16 +00:00
|
|
|
Test Collection::isEmpty().
|
2018-04-26 13:52:31 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2018-08-28 14:11:09 +00:00
|
|
|
if (!Collection::init()->isEmpty()) {
|
2018-04-26 13:52:31 +00:00
|
|
|
echo 'Collection::isEmpty() failed.', PHP_EOL;
|
2018-08-28 14:11:09 +00:00
|
|
|
}
|
2018-09-05 10:44:16 +00:00
|
|
|
if (Collection::init(['foo', 'bar'])->isEmpty()) {
|
2018-09-05 10:47:03 +00:00
|
|
|
echo 'Collection::isEmpty() failed.', PHP_EOL;
|
2018-08-28 14:11:09 +00:00
|
|
|
}
|
2018-04-26 13:52:31 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|