You are here

public static function PHPUnit_Runner_Version::id in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Runner/Version.php \PHPUnit_Runner_Version::id()

Returns the current version of PHPUnit.

Return value

string

5 calls to PHPUnit_Runner_Version::id()
PHPUnit_Runner_Version::getVersionString in vendor/phpunit/phpunit/src/Runner/Version.php
PHPUnit_TextUI_Command::handleVersionCheck in vendor/phpunit/phpunit/src/TextUI/Command.php
@since Method available since Release 4.8.0
PHPUnit_TextUI_TestRunner::doRun in vendor/phpunit/phpunit/src/TextUI/TestRunner.php
PHPUnit_Util_Test::getMissingRequirements in vendor/phpunit/phpunit/src/Util/Test.php
Returns the missing requirements for a test.
PHP_CodeCoverageTest::testCollect in vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php
@covers PHP_CodeCoverage::start @covers PHP_CodeCoverage::stop @covers PHP_CodeCoverage::append @covers PHP_CodeCoverage::applyListsFilter @covers PHP_CodeCoverage::initializeFilesThatAreSeenTheFirstTime @covers…

File

vendor/phpunit/phpunit/src/Runner/Version.php, line 26

Class

PHPUnit_Runner_Version
This class defines the current version of PHPUnit.

Code

public static function id() {
  if (self::$pharVersion !== null) {
    return self::$pharVersion;
  }
  if (self::$version === null) {
    $version = new SebastianBergmann\Version('4.8.11', dirname(dirname(__DIR__)));
    self::$version = $version
      ->getVersion();
  }
  return self::$version;
}