Skip to content

Commit

Permalink
Closes #5563
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Nov 14, 2023
1 parent 2ad7f18 commit 87a1fe1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog-10.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [10.4.3] - 2023-MM-DD

### Fixed

* [#5563](https://github.com/sebastianbergmann/phpunit/issues/5563): `createMockForIntersectionOfInterfaces()` does not automatically register mock object for expectation verification

## [10.4.2] - 2023-10-26

### Fixed
Expand Down Expand Up @@ -47,6 +53,7 @@ All notable changes of the PHPUnit 10.4 release series are documented in this fi
* `PHPUnit\TextUI\Configuration\Configuration::cliArgument()` and `PHPUnit\TextUI\Configuration\Configuration::hasCliArgument()`
* `PHPUnit\Framework\Constraint\Constraint::exporter()`

[10.4.3]: https://github.com/sebastianbergmann/phpunit/compare/10.4.2...10.4
[10.4.2]: https://github.com/sebastianbergmann/phpunit/compare/10.4.1...10.4.2
[10.4.1]: https://github.com/sebastianbergmann/phpunit/compare/10.4.0...10.4.1
[10.4.0]: https://github.com/sebastianbergmann/phpunit/compare/10.3.5...10.4.0
6 changes: 4 additions & 2 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1233,10 +1233,12 @@ protected function createMockForIntersectionOfInterfaces(array $interfaces): Moc
{
$mock = (new MockGenerator)->testDoubleForInterfaceIntersection($interfaces, true);

Event\Facade::emitter()->testCreatedMockObjectForIntersectionOfInterfaces($interfaces);

assert($mock instanceof MockObject);

$this->registerMockObject($mock);

Event\Facade::emitter()->testCreatedMockObjectForIntersectionOfInterfaces($interfaces);

return $mock;
}

Expand Down

0 comments on commit 87a1fe1

Please sign in to comment.