function _result($object, $property) { return Underscore::result($object, $property); }
/** * @tags utilities */ public function testResult() { $object = (object) ['prop' => 'hello', 'method' => function () { return $this->prop; }]; $this->string(_::result($object, 'prop'))->isEqualTo('hello'); $this->string(_::result($object, 'method'))->isEqualTo('hello'); }