function PHP::__construct
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Value/Php.php \PHPUnit\TextUI\Configuration\Php::__construct()
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/CodeCoverage/Report/Php.php \PHPUnit\TextUI\XmlConfiguration\CodeCoverage\Report\Php::__construct()
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Value/ Runtime/ PHP.php, line 43
Class
- PHP
- @psalm-immutable
Namespace
PHPUnit\Event\RuntimeCode
public function __construct() {
$this->version = PHP_VERSION;
$this->versionId = PHP_VERSION_ID;
$this->majorVersion = PHP_MAJOR_VERSION;
$this->minorVersion = PHP_MINOR_VERSION;
$this->releaseVersion = PHP_RELEASE_VERSION;
$this->extraVersion = PHP_EXTRA_VERSION;
$this->sapi = PHP_SAPI;
$extensions = array_merge(get_loaded_extensions(true), get_loaded_extensions());
sort($extensions);
$this->extensions = $extensions;
}