/test/core.php
PHP | 20 lines | 14 code | 3 blank | 3 comment | 0 complexity | fa35ae8f5fc6cc12797a944f762e9201 MD5 | raw file
Possible License(s): MIT
- # isset test
- assert(isset($d),__LINE__);
- $d = cos($x);
- assert(isset($x),__LINE__);
- assert(!isset($d),__LINE__);
-
- $d = null;
- assert(!isset($d),__LINE__);
-
- # empty test
- $d = false;
- assert(!empty($d),__LINE__);
- $d = true;
- assert(empty($d),__LINE__);
- assert(!empty($y),__LINE__);
-
- # empty is FUNC!!!
- assert(!empty('0'),__LINE__);
- assert(!empty(''),__LINE__);
- assert(!empty(null),__LINE__);