/** * @param $mockObject */ protected function setMockObjectExpectation(&$mockObject) { foreach ($this->methods as $method => $returnValue) { $this->instanceForger->setMockObjectExpectation($mockObject, $method, ReturnValue::from($returnValue)); } }