function _result($object, $property)
{
    return Underscore::result($object, $property);
}
Пример #2
0
 /**
  * @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');
 }