Skip to content

Commit

Permalink
Closes #5073
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 3, 2023
1 parent 70fc8be commit c53383c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
7 changes: 7 additions & 0 deletions ChangeLog-9.6.md
Expand Up @@ -2,6 +2,12 @@

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

## [9.6.1] - 2023-MM-DD

### Fixed

* [#5073](https://github.com/sebastianbergmann/phpunit/issues/5073): `--no-extensions` CLI option only prevents extension PHARs from being loaded

## [9.6.0] - 2023-02-03

### Changed
Expand All @@ -11,4 +17,5 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil
* [#5064](https://github.com/sebastianbergmann/phpunit/issues/5064): Deprecate `PHPUnit\Framework\TestCase::getMockClass()`
* [#5132](https://github.com/sebastianbergmann/phpunit/issues/5132): Deprecate `Test` suffix for abstract test case classes

[9.6.1]: https://github.com/sebastianbergmann/phpunit/compare/9.6.0...9.6
[9.6.0]: https://github.com/sebastianbergmann/phpunit/compare/9.5.28...9.6.0
18 changes: 10 additions & 8 deletions src/TextUI/TestRunner.php
Expand Up @@ -1008,17 +1008,19 @@ private function handleConfiguration(array &$arguments): void
$arguments['excludeGroups'] = array_diff($groupConfiguration->exclude()->asArrayOfStrings(), $groupCliArgs);
}

$extensionHandler = new ExtensionHandler;
if (!isset($this->arguments['noExtensions'])) {
$extensionHandler = new ExtensionHandler;

foreach ($arguments['configurationObject']->extensions() as $extension) {
$extensionHandler->registerExtension($extension, $this);
}
foreach ($arguments['configurationObject']->extensions() as $extension) {
$extensionHandler->registerExtension($extension, $this);
}

foreach ($arguments['configurationObject']->listeners() as $listener) {
$arguments['listeners'][] = $extensionHandler->createTestListenerInstance($listener);
}
foreach ($arguments['configurationObject']->listeners() as $listener) {
$arguments['listeners'][] = $extensionHandler->createTestListenerInstance($listener);
}

unset($extensionHandler);
unset($extensionHandler);
}

foreach ($arguments['unavailableExtensions'] as $extension) {
$arguments['warnings'][] = sprintf(
Expand Down

0 comments on commit c53383c

Please sign in to comment.