b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / vendor / phpunit / phpunit / src / Runner /
Filename/home/a/home/dev2.destoffenstraat.com/vendor/phpunit/phpunit/src/Runner/Version.php
Size1.59 kb
Permissionrw-r--r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified01-Feb-2019 06:22
Last accessed23-Aug-2025 07:04
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php declare(strict_types=1);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace PHPUnit\Runner;

use SebastianBergmann\Version as VersionId;

/**
* This class defines the current version of PHPUnit.
*/
class Version
{
private static $pharVersion;
private static $version;

/**
* 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 VersionId('6.5.14', \dirname(\dirname(__DIR__)));
self::$version = $version->getVersion();
}

return self::$version;
}

/**
* @return string
*/
public static function series()
{
if (\strpos(self::id(), '-')) {
$version = \explode('-', self::id())[0];
} else {
$version = self::id();
}

return \implode('.', \array_slice(\explode('.', $version), 0, 2));
}

/**
* @return string
*/
public static function getVersionString()
{
return 'PHPUnit ' . self::id() . ' by Sebastian Bergmann and contributors.';
}

/**
* @return string
*/
public static function getReleaseChannel()
{
if (\strpos(self::$pharVersion, '-') !== false) {
return '-nightly';
}

return '';
}
}