3
* This file is part of PHPUnit.
5
* (c) Sebastian Bergmann <sebastian@phpunit.de>
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
12
* This class defines the current version of PHPUnit.
16
* @author Sebastian Bergmann <sebastian@phpunit.de>
17
* @copyright Sebastian Bergmann <sebastian@phpunit.de>
18
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
19
* @link http://www.phpunit.de/
20
* @since Class available since Release 2.0.0
22
class PHPUnit_Runner_Version
24
private static $pharVersion;
25
private static $version;
28
* Returns the current version of PHPUnit.
32
public static function id()
34
if (self::$pharVersion !== null) {
35
return self::$pharVersion;
38
if (self::$version === null) {
39
$version = new SebastianBergmann\Version('4.4.5', dirname(dirname(__DIR__)));
40
self::$version = $version->getVersion();
43
return self::$version;
49
public static function getVersionString()
51
return 'PHPUnit ' . self::id() . ' by Sebastian Bergmann.';
56
* @since Method available since Release 4.0.0
58
public static function getReleaseChannel()
60
if (strpos(self::$pharVersion, 'alpha') !== false) {
64
if (strpos(self::$pharVersion, 'beta') !== false) {