public static getDefaultConfigurationPath ( ) : string | ||
return | string |
/** * @return string[] */ public function getGeneratorOptionsPossibilities() { return array($this->getGeneratorOptionsConfigOption(), sprintf('%s/%s', getcwd(), self::PROPER_USER_CONFIGURATION), sprintf('%s/%s', getcwd(), self::DEFAULT_CONFIGURATION_FILE), GeneratorOptions::getDefaultConfigurationPath()); }
/** * */ public function testResolveGeneratorOptionsConfigPathUsingDefaultConfig() { $command = new GeneratePackageCommand('WsdlToPhp'); $input = new ArrayInput(array('--urlorpath' => self::wsdlBingPath(), '--destination' => self::getTestDirectory() . '/debug/', '--composer-name' => 'wsdltophp/package', '--gentutorial' => 'true', '--genericconstants' => 'false')); chdir(self::getTestDirectory()); $output = new ConsoleOutput(OutputInterface::VERBOSITY_QUIET); $command->run($input, $output); $this->assertSame(GeneratorOptions::getDefaultConfigurationPath(), $command->resolveGeneratorOptionsConfigPath()); }