Skip to content
Permalink
Browse files

Merge branch '8.1'

  • Loading branch information...
sebastianbergmann committed May 17, 2019
2 parents a7012b8 + 2f56c8a commit 32e45ee7df62c0d9ae4804e11e6474f60edb5837
@@ -2,6 +2,12 @@

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

## [7.5.12] - 2019-MM-DD

### Fixed

* Fixed [#3694](https://github.com/sebastianbergmann/phpunit/pull/3694): Constructor arguments for `Throwable` and `Exception` are ignored

## [7.5.11] - 2019-05-14

### Fixed
@@ -108,6 +114,7 @@ All notable changes of the PHPUnit 7.5 release series are documented in this fil
* Fixed [#3429](https://github.com/sebastianbergmann/phpunit/pull/3429): Inefficient loop in `getHookMethods()`
* Fixed [#3437](https://github.com/sebastianbergmann/phpunit/pull/3437): JUnit logger skips PHPT tests

[7.5.12]: https://github.com/sebastianbergmann/phpunit/compare/7.5.11...7.5.12
[7.5.11]: https://github.com/sebastianbergmann/phpunit/compare/7.5.10...7.5.11
[7.5.10]: https://github.com/sebastianbergmann/phpunit/compare/7.5.9...7.5.10
[7.5.9]: https://github.com/sebastianbergmann/phpunit/compare/7.5.8...7.5.9
@@ -2,6 +2,12 @@

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

## [8.1.6] - 2019-MM-DD

### Fixed

* Fixed [#3694](https://github.com/sebastianbergmann/phpunit/pull/3694): Constructor arguments for `Throwable` and `Exception` are ignored

## [8.1.5] - 2019-05-14

### Fixed
@@ -53,6 +59,7 @@ All notable changes of the PHPUnit 8.1 release series are documented in this fil

* The `groups` attribute on the `test` element in the TestDox XML report is now deprecated

[8.1.6]: https://github.com/sebastianbergmann/phpunit/compare/8.1.5...8.1.6
[8.1.5]: https://github.com/sebastianbergmann/phpunit/compare/8.1.4...8.1.5
[8.1.4]: https://github.com/sebastianbergmann/phpunit/compare/8.1.3...8.1.4
[8.1.3]: https://github.com/sebastianbergmann/phpunit/compare/8.1.2...8.1.3
@@ -531,9 +531,7 @@ private function getObject(string $code, string $className, $type = '', bool $ca
{
$this->evalClass($code, $className);
if ($callOriginalConstructor &&
\is_string($type) &&
!\interface_exists($type, $callAutoload)) {
if ($callOriginalConstructor) {
if (\count($arguments) === 0) {
$object = new $className;
} else {
@@ -203,7 +203,13 @@ public function testMockingOfThrowable(): void
$this->assertInstanceOf(MockObject::class, $stub);
}
public function testVariadicArgumentsArePassedToOriginalMethod(): void
public function testMockingOfThrowableConstructorArguments(): void
{
$mock = $this->generator->getMock(Throwable::class, null, ['It works']);
$this->assertSame('It works', $mock->getMessage());
}
public function testVariadicArgumentsArePassedToOriginalMethod()
{
/** @var ClassWithVariadicArgumentMethod|MockObject $mock */
$mock = $this->generator->getMock(

0 comments on commit 32e45ee

Please sign in to comment.
You can’t perform that action at this time.