private function setUpMocks() { $this->signature_builder_mock = TestFactory::mockBuildSignatures(); $this->files_mock = TestFactory::mockFilesystem(); $this->type_hinter_mock = TestFactory::mockInsertTypeHints(); $this->code_formatter_mock = TestFactory::mockFormatCode(); $this->code_refactor_mock = TestFactory::mockRefactorCode(); $this->request_mock = TestFactory::mockRequest(); $this->response_mock = TestFactory::mockResponse(); $this->wsdl_generator_mock = TestFactory::mockWsdlGenerator(); $this->generator_mock->shouldReceive('apiDirectory')->with(null, false, true)->andReturn('mocked/directory')->twice(); }