for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Console\Commands;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* RunTestCommand
*/
class RunTestCommand extends Command
{
* Configuration of command
protected function configure()
$this
->setName('run:test')
->setDescription('Command for run tests')
;
}
* Execute method of command
*
* @param InputInterface $input
* @param OutputInterface $output
* @return void
protected function execute(InputInterface $input, OutputInterface $output)
exec('./vendor/bin/codecept run', $result);
if (is_array($result)) {
$output->writeln($result);