function _isString($object, $native = false) { return Underscore::isString($object, $native); }
/** * @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(); }