/** * Returns the current version of PHPUnit. * * @return string */ public static function id() { if (self::$version === NULL) { $version = new SebastianBergmann\Version('3.8', __DIR__); self::$version = $version->getVersion(); } return self::$version; }
/** * Returns the current version of DiffSniffer * * @return string */ public static function getVersion() { if (self::$version === null) { $version = new \SebastianBergmann\Version('2.3', dirname(dirname(__DIR__))); self::$version = $version->getVersion(); } return self::$version; }
/** * 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 SebastianBergmann\Version('2.1.9', dirname(dirname(dirname(dirname(__DIR__))))); $this->templatePath = $templatePath; $this->generator = $generator; $this->date = $date; $this->lowUpperBound = $lowUpperBound; $this->highLowerBound = $highLowerBound; $this->version = $version->getVersion(); }
/** * Returns 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('4.8.12', dirname(dirname(__DIR__))); self::$version = $version->getVersion(); } return self::$version; }
public static function getVersion() { if (defined('PHING_BUILD_VERSION')) { return PHING_BUILD_VERSION; } else { $version = new \SebastianBergmann\Version(Yentu::VERSION, dirname(__DIR__)); return $version->getVersion(); } }
public function __construct() { $version = new SebastianBergmann\Version('1.1.3', __DIR__); $this->version = $version->getVersion(); }