public function __construct()
 {
     $version = new Version('2.0.1', dirname(dirname(__DIR__)));
     parent::__construct('phpunit-skelgen', $version->getVersion());
     $this->add(new GenerateClassCommand());
     $this->add(new GenerateTestCommand());
 }
Esempio n. 2
0
 public function __construct()
 {
     $version = new Version('1.0.0', dirname(__DIR__));
     parent::__construct('phpcov-runner', $version->getVersion());
     $this->add(new StartCommand());
     $this->add(new StopCommand());
 }
 /**
  * Registers services on the given container.
  *
  * This method should only be used to configure services and parameters.
  * It should not get services.
  *
  * @param Container $pimple An Container instance
  */
 public function register(Container $pimple)
 {
     $pimple['version'] = function () use($pimple) {
         $instance = new Version($pimple['config']['application']['version'], BASEPATH);
         return $instance->getVersion();
     };
 }
Esempio n. 4
0
 public function __construct()
 {
     $version = new Version('2.0.1', dirname(__DIR__));
     parent::__construct('phpcov', $version->getVersion());
     $this->add(new ExecuteCommand());
     $this->add(new MergeCommand());
     $this->add(new PatchCoverageCommand());
 }
Esempio n. 5
0
 /**
  * Return the current Drush version.
  *
  * n.b. Called before the DI container is initialized.
  * Do not log, etc. here.
  */
 public static function getVersion()
 {
     if (!static::$version) {
         $drush_info = static::drush_read_drush_info();
         $instance = new Version($drush_info['drush_version'], DRUSH_BASE_PATH);
         static::$version = $instance->getversion();
     }
     return static::$version;
 }
Esempio n. 6
0
 /**
  * Constructor.
  *
  * @param string $templatePath
  * @param string $generator
  * @param string $date
  * @param int    $lowUpperBound
  * @param int    $highLowerBound
  */
 public function __construct($templatePath, $generator, $date, $lowUpperBound, $highLowerBound)
 {
     $version = new Version('4.0.2', dirname(dirname(dirname(dirname(__DIR__)))));
     $this->templatePath = $templatePath;
     $this->generator = $generator;
     $this->date = $date;
     $this->lowUpperBound = $lowUpperBound;
     $this->highLowerBound = $highLowerBound;
     $this->version = $version->getVersion();
 }
Esempio n. 7
0
 public function __construct()
 {
     $pharVersion = '@package_version@';
     $gitVersion = new Version(self::VERSION, __DIR__ . '/../../');
     if ($pharVersion !== '@' . 'package_version' . '@') {
         parent::__construct(self::$logo . PHP_EOL . self::NAME, $pharVersion);
         return;
     }
     parent::__construct(self::$logo . PHP_EOL . self::NAME, $gitVersion->getVersion());
 }
Esempio n. 8
0
 /**
  * Return the current version of PHPUnit.
  *
  * @return string
  */
 public static function id()
 {
     if (self::$pharVersion !== null) {
         return self::$pharVersion;
     }
     if (self::$version === null) {
         $version = new SebastianBergmann\Version('3.0', dirname(dirname(__DIR__)));
         self::$version = $version->getVersion();
     }
     return self::$version;
 }
Esempio n. 9
0
 public function __construct()
 {
     $this->commandRepository = new CommandRepository();
     $version = new Version('4.2', dirname(dirname(dirname(__DIR__))));
     parent::__construct('Stagehand_TestRunner', $version->getVersion());
     $this->setAutoExit(false);
     // For compatibility with Symfony 2.0
     if (!method_exists('Symfony\\Component\\Console\\Application', 'getDefaultCommands')) {
         foreach ($this->getDefaultCommands() as $command) {
             $this->add($command);
         }
     }
 }
Esempio n. 10
0
 /**
  * @return string
  */
 protected function getUserAgent()
 {
     static $defaultAgent = '';
     if ($defaultAgent === '') {
         $defaultAgent = 'pwnRaid/' . $this->version->getVersion() . ' ' . \GuzzleHttp\default_user_agent();
     }
     return $defaultAgent;
 }
Esempio n. 11
0
 public function __construct()
 {
     $version = new Version('3.0', dirname(dirname(__DIR__)));
     parent::__construct('phpcpd', $version->getVersion());
 }
Esempio n. 12
0
 public function __construct()
 {
     $version = new Version('2.0.2', __DIR__);
     parent::__construct('phploc', $version->getVersion());
 }
Esempio n. 13
0
 public function __construct()
 {
     $version = new Version('1.0', __DIR__);
     parent::__construct('bugminer', $version->getVersion());
 }
 /**
  * @param $version
  * @return string X.Y.Z
  */
 public static function appVersion($version = null)
 {
     if (!$version) {
         $version = '0.0.0';
     }
     $version = new Version($version, base_path());
     return $version->getVersion();
 }
Esempio n. 15
0
 public function __construct()
 {
     $version = new Version('1.4.3', __DIR__);
     $this->version = $version->getVersion();
 }
 public function __construct()
 {
     $version = new Version('2.0.1', dirname(dirname(__DIR__)));
     parent::__construct('phar-site-generator', $version->getVersion());
 }