/var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Command
NameSizeModeActions
Shared/-0775rm
Bootstrap.php22000664editdlrm
Build.php35150664editdlrm
Clean.php13010664editdlrm
Completion.php27120664editdlrm
CompletionFallback.php14840664editdlrm
ConfigValidate.php37780664editdlrm
Console.php56440664editdlrm
DryRun.php51230664editdlrm
GenerateCept.php17130664editdlrm
GenerateCest.php19480664editdlrm
GenerateEnvironment.php18090664editdlrm
GenerateFeature.php19510664editdlrm
GenerateGroup.php16510664editdlrm
GenerateHelper.php14240664editdlrm
GeneratePageObject.php22560664editdlrm
GenerateScenarios.php48790664editdlrm
GenerateSnapshot.php21550664editdlrm
GenerateStepObject.php25990664editdlrm
GenerateSuite.php42970664editdlrm
GenerateTest.php17620664editdlrm
GherkinSnippets.php29390664editdlrm
GherkinSteps.php21200664editdlrm
Init.php17470664editdlrm
Run.php227990664editdlrm
SelfUpdate.php87870664editdlrm
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Command/GenerateFeature.php (1951B)
setDefinition([ new InputArgument('suite', InputArgument::REQUIRED, 'suite to be tested'), new InputArgument('feature', InputArgument::REQUIRED, 'feature to be generated'), new InputOption('config', 'c', InputOption::VALUE_OPTIONAL, 'Use custom path for config'), ]); } public function getDescription() { return 'Generates empty feature file in suite'; } public function execute(InputInterface $input, OutputInterface $output) { $suite = $input->getArgument('suite'); $filename = $input->getArgument('feature'); $config = $this->getSuiteConfig($suite); $this->createDirectoryFor($config['path'], $filename); $gen = new Feature(basename($filename)); if (!preg_match('~\.feature$~', $filename)) { $filename .= '.feature'; } $full_path = rtrim($config['path'], DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $filename; $res = $this->createFile($full_path, $gen->produce()); if (!$res) { $output->writeln("Feature $filename already exists"); return; } $output->writeln("Feature was created in $full_path"); } }