public function thenReturn() { foreach (func_get_args() as $result) { $this->mock->_stubbed_calls[] = new CallStub($this->methodCall, Functions::constant($result)); } return $this; }