コード例 #1
0
function _isString($object, $native = false)
{
    return Underscore::isString($object, $native);
}
コード例 #2
0
ファイル: Underscore.php プロジェクト: brombal/underscore.php
 /**
  * @tags objects
  */
 public function testIsString()
 {
     $this->boolean(_::isString('hello'))->isTrue();
     $this->boolean(_::isString(new \SplString()))->isTrue();
     $this->boolean(_::isString(new \SplString(), true))->isFalse();
     $this->boolean(_::isString(new \MagicMethods()))->isTrue();
     $this->boolean(_::isString(123))->isFalse();
     $this->boolean(_::isString(new \stdClass()))->isFalse();
 }