PageRenderTime 36ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/test/core.php

http://orionphp.googlecode.com/
PHP | 20 lines | 14 code | 3 blank | 3 comment | 0 complexity | fa35ae8f5fc6cc12797a944f762e9201 MD5 | raw file
Possible License(s): MIT
  1. # isset test
  2. assert(isset($d),__LINE__);
  3. $d = cos($x);
  4. assert(isset($x),__LINE__);
  5. assert(!isset($d),__LINE__);
  6. $d = null;
  7. assert(!isset($d),__LINE__);
  8. # empty test
  9. $d = false;
  10. assert(!empty($d),__LINE__);
  11. $d = true;
  12. assert(empty($d),__LINE__);
  13. assert(!empty($y),__LINE__);
  14. # empty is FUNC!!!
  15. assert(!empty('0'),__LINE__);
  16. assert(!empty(''),__LINE__);
  17. assert(!empty(null),__LINE__);