Skip to content

Commit

Permalink
Closes #4720
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jun 26, 2021
1 parent 7906785 commit bf56acb
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog-8.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes of the PHPUnit 8.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.

## [8.5.18] - 2021-MM-DD

### Fixed

* [#4720](https://github.com/sebastianbergmann/phpunit/issues/4720): PHPUnit does not verify its own PHP extension requirements

## [8.5.17] - 2021-06-23

### Changed
Expand Down Expand Up @@ -149,6 +155,7 @@ All notable changes of the PHPUnit 8.5 release series are documented in this fil
* [#3967](https://github.com/sebastianbergmann/phpunit/issues/3967): Cannot double interface that extends interface that extends `\Throwable`
* [#3968](https://github.com/sebastianbergmann/phpunit/pull/3968): Test class run in a separate PHP process are passing when `exit` called inside

[8.5.18]: https://github.com/sebastianbergmann/phpunit/compare/8.5.17...8.5
[8.5.17]: https://github.com/sebastianbergmann/phpunit/compare/8.5.16...8.5.17
[8.5.16]: https://github.com/sebastianbergmann/phpunit/compare/8.5.15...8.5.16
[8.5.15]: https://github.com/sebastianbergmann/phpunit/compare/8.5.14...8.5.15
Expand Down
16 changes: 16 additions & 0 deletions build/templates/binary-phar-autoload.php.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ if (version_compare('7.2.0', PHP_VERSION, '>')) {
die(1);
}

foreach (['dom', 'json', 'libxml', 'mbstring', 'tokenizer', 'xml', 'xmlwriter'] as $extension) {
if (extension_loaded($extension)) {
continue;
}

fwrite(
STDERR,
sprintf(
'PHPUnit requires the "%s" extension.' . PHP_EOL,
$extension
)
);

die(1);
}

if (__FILE__ === realpath($_SERVER['SCRIPT_NAME'])) {
$execute = true;
} else {
Expand Down
16 changes: 16 additions & 0 deletions phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ if (version_compare('7.2.0', PHP_VERSION, '>')) {
die(1);
}

foreach (['dom', 'json', 'libxml', 'mbstring', 'tokenizer', 'xml', 'xmlwriter'] as $extension) {
if (extension_loaded($extension)) {
continue;
}

fwrite(
STDERR,
sprintf(
'PHPUnit requires the "%s" extension.' . PHP_EOL,
$extension
)
);

die(1);
}

if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'UTC');
}
Expand Down

0 comments on commit bf56acb

Please sign in to comment.