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->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();
 }