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();
 }
 protected function setUpMocks()
 {
     $this->reflector_mock = TestFactory::mockClassReflector();
     $this->files_mock = TestFactory::mockFilesystem();
     $this->class_name_getter_mock = TestFactory::mockGetClassName();
     $this->reflection_class_mock = TestFactory::mockReflectionClass();
     $this->reflection_method_mock = TestFactory::mockReflectionMethod();
 }
 private function setUpMocks()
 {
     $this->extractor_mock = TestFactory::mockExtractSignatures();
     $this->files_mock = TestFactory::mockFilesystem();
     $this->code_formatter_mock = TestFactory::mockFormatCode();
     $this->generator_mock->shouldReceive('apiDirectory')->with(null, false, true)->andReturn('mocked/directory')->once();
     $this->generator_mock->shouldReceive('get')->with('config')->andReturn(['signature_file_name' => 'SignatureFile'])->once();
     $this->generator_mock->shouldReceive('apiDirectory')->with('SignatureFile.php', false, true)->andReturn('mocked/directory/SignatureFile.php')->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();
 }
 protected function setUp()
 {
     $this->files_mock = TestFactory::mockFilesystem();
     $this->generator = new Generator($this->buildConfig(), $this->files_mock);
 }
 private function setUpMocks()
 {
     $this->files_mock = TestFactory::mockFilesystem();
     $this->type_hinter_mock = TestFactory::mockAddTypeHints();
     $this->generator_mock->shouldReceive('apiDirectory')->with(null, false, true)->andReturn('mocked/directory')->once();
 }