Skip to content

Commit

Permalink
Closes #3480
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 12, 2019
1 parent 6a93fd3 commit 4909cdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog-7.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes of the PHPUnit 7.5 release series are documented in this fil

### Fixed

* Fixed [#3480](https://github.com/sebastianbergmann/phpunit/issues/3480): Wrong return type declaration for `TestCase::getExpectedExceptionMessage()` and `TestCase::getExpectedExceptionMessageRegExp()`
* Fixed [#3550](https://github.com/sebastianbergmann/phpunit/issues/3550): Check for valid attribute names in `assertObjectHasAttribute()` is too strict

## [7.5.6] - 2019-02-18
Expand Down
8 changes: 4 additions & 4 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ abstract class TestCase extends Assert implements Test, SelfDescribing
private $expectedException;

/**
* @var string
* @var null|string
*/
private $expectedExceptionMessage;

/**
* @var string
* @var null|string
*/
private $expectedExceptionMessageRegExp;

Expand Down Expand Up @@ -569,12 +569,12 @@ public function getExpectedExceptionCode()
return $this->expectedExceptionCode;
}

public function getExpectedExceptionMessage(): string
public function getExpectedExceptionMessage(): ?string
{
return $this->expectedExceptionMessage;
}

public function getExpectedExceptionMessageRegExp(): string
public function getExpectedExceptionMessageRegExp(): ?string
{
return $this->expectedExceptionMessageRegExp;
}
Expand Down

0 comments on commit 4909cdf

Please sign in to comment.