コード例 #1
0
function _isTraversable($object)
{
    return Underscore::isTraversable($object);
}
コード例 #2
0
ファイル: Underscore.php プロジェクト: brombal/underscore.php
 /**
  * @tags objects
  */
 public function testIsTraversable()
 {
     $this->typeTolerant([], null, function ($in, $out) {
         $this->boolean(_::isTraversable($in))->isTrue();
     }, [1, -1]);
     $this->boolean(_::isTraversable(false))->isFalse();
 }