protected function setUpMocks() { $this->input_mock = TestFactory::mockInputArray(); $this->output_mock = TestFactory::mockOutputConsole(); $this->request_mock = TestFactory::mockRequest(); $this->response_mock = TestFactory::mockResponse(); }
private function setUpMocks() { $this->files_mock = TestFactory::mockFilesystem(); $this->request_mock = TestFactory::mockRequest(); $this->response_mock = TestFactory::mockResponse(); $this->generator_mock->shouldReceive('apiDirectory')->with(null, false, true)->andReturn('mocked/directory')->once(); }
private function setUpMocks() { $this->files_mock = TestFactory::mockFilesystem(); $this->request_mock = TestFactory::mockRequest(); $this->response_mock = TestFactory::mockResponse(); $this->response_mock->shouldReceive('getSuccessful')->withNoArgs()->andReturn(true); $this->response_mock->shouldReceive('getResponse')->withNoArgs()->andReturn("Response"); $this->output_mock->shouldReceive('writeln')->with("<comment>Response</comment>"); $this->generator_mock->shouldReceive('apiDirectory')->with(null, false, true)->andReturn('mocked/directory')->once(); }
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(); }