Skip to content

Commit

Permalink
Closes #3893
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 11, 2019
1 parent 333a8df commit ace879e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog-8.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [8.4.2] - 2019-MM-DD

### Fixed

* Fixed [#3893](https://github.com/sebastianbergmann/phpunit/issues/3893): `TypeError` when called with a filename without extension

## [8.4.1] - 2019-10-07

### Fixed
Expand All @@ -21,6 +27,7 @@ All notable changes of the PHPUnit 8.4 release series are documented in this fil

* The method `expectExceptionMessageRegExp()` is now deprecated. There is no behavioral change in this version of PHPUnit. Using this method will trigger a deprecation warning in PHPUnit 9 and in PHPUnit 10 it will be removed. Please use `expectExceptionMessageMatches()` instead.

[8.4.2]: https://github.com/sebastianbergmann/phpunit/compare/8.4.1...8.4
[8.4.1]: https://github.com/sebastianbergmann/phpunit/compare/8.4.0...8.4.1
[8.4.0]: https://github.com/sebastianbergmann/phpunit/compare/8.3.5...8.4.0

1 change: 1 addition & 0 deletions src/TextUI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ protected function handleArguments(array $argv): void

if (isset($this->arguments['test']) &&
\is_file($this->arguments['test']) &&
\strrpos($this->arguments['test'], '.') !== false &&
\substr($this->arguments['test'], -5, 5) !== '.phpt') {
$this->arguments['testFile'] = \realpath($this->arguments['test']);
$this->arguments['test'] = \substr($this->arguments['test'], 0, \strrpos($this->arguments['test'], '.'));
Expand Down

0 comments on commit ace879e

Please sign in to comment.