for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Paraunit\Bin;
use Jean85\PrettyVersions;
use Paraunit\Command\CoverageCommand;
use Paraunit\Command\ParallelCommand;
use Paraunit\Configuration\CoverageConfiguration;
use Paraunit\Configuration\ParallelConfiguration;
use Symfony\Component\Console\Application;
/**
* Class Paraunit
* @package Paraunit\Bin
*/
class Paraunit
{
public static function createApplication(): Application
$application = new Application('Paraunit', self::getVersion());
$parallelCommand = new ParallelCommand(new ParallelConfiguration());
$application->add($parallelCommand);
$coverageCommand = new CoverageCommand(new CoverageConfiguration());
$application->add($coverageCommand);
return $application;
}
public static function getVersion(): string
return PrettyVersions::getVersion('facile-it/paraunit')->getPrettyVersion();