public static function constant($value) { return function () use($value) { return $value; }; }
/** * @param mixed ... * @return $this */ public function thenReturn() { foreach (func_get_args() as $result) { $this->mock->_stubbed_calls[] = new CallStub($this->methodCall, Functions::constant($result)); } return $this; }