1# Changes in PHPUnit 5.7 2 3All notable changes of the PHPUnit 5.7 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. 4 5## [5.7.27] - 2018-02-01 6 7### Fixed 8 9* Fixed [#2236](https://github.com/sebastianbergmann/phpunit/issues/2236): Exceptions in `tearDown()` do not affect `getStatus()` 10* Fixed [#2950](https://github.com/sebastianbergmann/phpunit/issues/2950): Class extending `PHPUnit\Framework\TestSuite` does not extend `PHPUnit\FrameworkTestCase` 11* Fixed [#2972](https://github.com/sebastianbergmann/phpunit/issues/2972): PHPUnit crashes when test suite contains both `.phpt` files and unconventionally named tests 12 13## [5.7.26] - 2017-12-17 14 15### Fixed 16 17* Fixed [#2472](https://github.com/sebastianbergmann/phpunit/issues/2472): `PHPUnit\Util\Getopt` uses deprecated `each()` function 18* Fixed [#2833](https://github.com/sebastianbergmann/phpunit/issues/2833): Test class loaded during data provider execution is not discovered 19* Fixed [#2922](https://github.com/sebastianbergmann/phpunit/issues/2922): Test class is not discovered when there is a test class with `@group` and provider throwing exception in it, tests are run with `--exclude-group` for that group, there is another class called later (after the class from above), and the name of that another class does not match its filename 20 21## [5.7.25] - 2017-11-14 22 23### Fixed 24 25* Fixed [#2859](https://github.com/sebastianbergmann/phpunit/issues/2859): Regression caused by fix for [#2833](https://github.com/sebastianbergmann/phpunit/issues/2833) 26 27## [5.7.24] - 2017-11-14 28 29### Fixed 30 31* Fixed [#2833](https://github.com/sebastianbergmann/phpunit/issues/2833): Test class loaded during data provider execution is not discovered 32 33## [5.7.23] - 2017-10-15 34 35### Fixed 36 37* Fixed [#2731](https://github.com/sebastianbergmann/phpunit/issues/2731): Empty exception message cannot be expected 38 39## [5.7.22] - 2017-09-24 40 41### Fixed 42 43* Fixed [#2769](https://github.com/sebastianbergmann/phpunit/issues/2769): Usage of `setUseErrorHandler()` produces `Undefined variable` error 44 45## [5.7.21] - 2017-06-21 46 47### Added 48 49* Added `PHPUnit\Framework\AssertionFailedError`, `PHPUnit\Framework\Test`, and `PHPUnit\Framework\TestSuite` to the forward compatibility layer for PHPUnit 6 50 51### Fixed 52 53* Fixed [#2705](https://github.com/sebastianbergmann/phpunit/issues/2705): `stderr` parameter in `phpunit.xml` always considered `true` 54 55## [5.7.20] - 2017-05-22 56 57### Fixed 58 59* Fixed [#2563](https://github.com/sebastianbergmann/phpunit/pull/2563): `phpunit --version` does not display version when running unsupported PHP 60 61## [5.7.19] - 2017-04-03 62 63### Fixed 64 65* Fixed [#2638](https://github.com/sebastianbergmann/phpunit/pull/2638): Regression in `PHPUnit\Framework\TestCase:registerMockObjectsFromTestArguments()` 66 67## [5.7.18] - 2017-04-02 68 69### Fixed 70 71* Fixed [#2145](https://github.com/sebastianbergmann/phpunit/issues/2145): `--stop-on-failure` fails to stop on PHP 7 72* Fixed [#2572](https://github.com/sebastianbergmann/phpunit/issues/2572): `PHPUnit\Framework\TestCase:registerMockObjectsFromTestArguments()` does not correctly handle arrays that reference themselves 73 74## [5.7.17] - 2017-03-19 75 76### Fixed 77 78* Fixed [#2016](https://github.com/sebastianbergmann/phpunit/issues/2016): `prophesize()` does not work when static attributes are backed up 79* Fixed [#2568](https://github.com/sebastianbergmann/phpunit/issues/2568): `ArraySubsetConstraint` uses invalid cast to array 80* Fixed [#2573](https://github.com/sebastianbergmann/phpunit/issues/2573): `getMockFromWsdl()` does not handle URLs with query parameters 81* `PHPUnit\Util\Test::getDataFromTestWithAnnotation()` raises notice when docblock contains Windows line endings 82 83## [5.7.16] - 2017-03-15 84 85### Fixed 86 87* Fixed [#2547](https://github.com/sebastianbergmann/phpunit/issues/2547): Code Coverage data is collected for test annotated with `@coversNothing` 88* Fixed [#2558](https://github.com/sebastianbergmann/phpunit/issues/2558): `countOf()` function is missing 89 90## [5.7.15] - 2017-03-02 91 92### Fixed 93 94* Fixed [#1999](https://github.com/sebastianbergmann/phpunit/issues/1999): Handler is inherited from previous custom option with handler 95* Fixed [#2149](https://github.com/sebastianbergmann/phpunit/issues/2149): `assertCount()` does not handle generators properly 96* Fixed [#2478](https://github.com/sebastianbergmann/phpunit/issues/2478): Tests that take too long are not reported as risky test 97 98## [5.7.14] - 2017-02-19 99 100### Fixed 101 102* Fixed [#2489](https://github.com/sebastianbergmann/phpunit/issues/2489): `processUncoveredFilesFromWhitelist` is not handled correctly 103* Fixed default values for `addUncoveredFilesFromWhitelist` and `processUncoveredFilesFromWhitelist` in `phpunit.xsd` 104 105## [5.7.13] - 2017-02-10 106 107### Fixed 108 109* Fixed [#2493](https://github.com/sebastianbergmann/phpunit/issues/2493): Fix for [#2475](https://github.com/sebastianbergmann/phpunit/pull/2475) does not apply to PHPUnit 5.7 110 111## [5.7.12] - 2017-02-08 112 113### Fixed 114 115* Fixed [#2475](https://github.com/sebastianbergmann/phpunit/pull/2475): Defining a test suite with only one file does not work 116 117## [5.7.11] - 2017-02-05 118 119### Fixed 120 121* Deprecation errors when used with PHP 7.2 122 123## [5.7.10] - 2017-02-04 124 125### Fixed 126 127* Fixed [#2462](https://github.com/sebastianbergmann/phpunit/issues/2462): Code Coverage whitelist is filled even if no code coverage data is to be collected 128 129## [5.7.9] - 2017-01-28 130 131### Fixed 132 133* Fixed [#2447](https://github.com/sebastianbergmann/phpunit/issues/2447): Reverted backwards incompatible change to handling of boolean environment variable values specified in XML 134 135## [5.7.8] - 2017-01-26 136 137### Fixed 138 139* Fixed [#2446](https://github.com/sebastianbergmann/phpunit/issues/2446): Reverted backwards incompatible change to exit code in case of warnings 140 141## [5.7.7] - 2017-01-25 142 143### Fixed 144 145* Fixed [#1896](https://github.com/sebastianbergmann/phpunit/issues/1896): Wrong test location when `@depends` and `@dataProvider` are combined 146* Fixed [#1983](https://github.com/sebastianbergmann/phpunit/pull/1983): Tests with `@expectedException` annotation cannot be skipped 147* Fixed [#2137](https://github.com/sebastianbergmann/phpunit/issues/2137): Warnings for invalid data providers are suppressed when test execution is filtered 148* Fixed [#2275](https://github.com/sebastianbergmann/phpunit/pull/2275): Invalid UTF-8 characters can lead to missing output 149* Fixed [#2299](https://github.com/sebastianbergmann/phpunit/issues/2299): `expectExceptionMessage()` and `expectExceptionCode()` do not work without `expectException()` 150* Fixed [#2328](https://github.com/sebastianbergmann/phpunit/issues/2328): `TestListener` callbacks `startTest()` and `endTest()` are not called when test is skipped due to `@depends` 151* Fixed [#2331](https://github.com/sebastianbergmann/phpunit/issues/2331): Boolean environment variable values specified in XML get mangled 152* Fixed [#2333](https://github.com/sebastianbergmann/phpunit/issues/2333): `assertContains()` and `assertNotContains()` do not handle UTF-8 strings correctly 153* Fixed [#2340](https://github.com/sebastianbergmann/phpunit/pull/2340): Data providers that use `yield` or implement `Iterator` cannot be combined 154* Fixed [#2349](https://github.com/sebastianbergmann/phpunit/pull/2349): `PHPUnit_TextUI_Command` does not `exit()` when it should 155* Fixed [#2392](https://github.com/sebastianbergmann/phpunit/issues/2392): Empty (but valid) data provider should skip the test 156* Fixed [#2431](https://github.com/sebastianbergmann/phpunit/issues/2431): `assertArraySubset()` does not support `ArrayAccess` 157* Fixed [#2435](https://github.com/sebastianbergmann/phpunit/issues/2435): Empty `@group` annotation causes error on PHP 7.2+ 158 159## [5.7.6] - 2017-01-22 160 161### Fixed 162 163* Fixed [#2424](https://github.com/sebastianbergmann/phpunit/issues/2424): `TestCase::getStatus()` returns `STATUS_PASSED` instead of `STATUS_RISKY` for risky test 164* Fixed [#2427](https://github.com/sebastianbergmann/phpunit/issues/2427): TestDox group configuration is not handled 165* Fixed [#2428](https://github.com/sebastianbergmann/phpunit/pull/2428): Nested arrays specificied in XML configuration file are not handled correctly 166 167## [5.7.5] - 2016-12-28 168 169### Fixed 170 171* Fixed [#2404](https://github.com/sebastianbergmann/phpunit/pull/2404): `assertDirectoryNotIsWriteable()` calls itself 172 173## [5.7.4] - 2016-12-13 174 175### Fixed 176 177* Fixed [#2394](https://github.com/sebastianbergmann/phpunit/issues/2394): Do not treat `AssertionError` as assertion failure on PHP 5 178 179## [5.7.3] - 2016-12-09 180 181### Fixed 182 183* Fixed [#2384](https://github.com/sebastianbergmann/phpunit/pull/2384): Handle `PHPUnit_Framework_Exception` correctly when expecting exceptions 184 185## [5.7.2] - 2016-12-03 186 187### Fixed 188 189* Fixed [#2382](https://github.com/sebastianbergmann/phpunit/issues/2382): Uncloneable test doubles passed via data provider do not work 190 191## [5.7.1] - 2016-12-02 192 193### Fixed 194 195* Fixed [#2380](https://github.com/sebastianbergmann/phpunit/issues/2380): Data Providers cannot be generators anymore 196 197## [5.7.0] - 2016-12-02 198 199### Added 200 201* Merged [#2223](https://github.com/sebastianbergmann/phpunit/pull/2223): Add support for multiple data providers 202* Added `extensionsDirectory` configuration directive to configure a directory from which all `.phar` files are loaded as PHPUnit extensions 203* Added `--no-extensions` commandline option to suppress loading of extensions (from configured extension directory) 204* Added `PHPUnit\Framework\Assert` as an alias for `PHPUnit_Framework_Assert` for forward compatibility 205* Added `PHPUnit\Framework\BaseTestListener` as an alias for `PHPUnit_Framework_BaseTestListener` for forward compatibility 206* Added `PHPUnit\Framework\TestListener` as an alias for `PHPUnit_Framework_TestListener` for forward compatibility 207 208### Changed 209 210* The `--log-json` commandline option has been deprecated 211* The `--tap` and `--log-tap` commandline options have been deprecated 212* The `--self-update` and `--self-upgrade` commandline options have been deprecated (PHAR binary only) 213 214[5.7.27]: https://github.com/sebastianbergmann/phpunit/compare/5.7.26...5.7.27 215[5.7.26]: https://github.com/sebastianbergmann/phpunit/compare/5.7.25...5.7.26 216[5.7.25]: https://github.com/sebastianbergmann/phpunit/compare/5.7.24...5.7.25 217[5.7.24]: https://github.com/sebastianbergmann/phpunit/compare/5.7.23...5.7.24 218[5.7.23]: https://github.com/sebastianbergmann/phpunit/compare/5.7.22...5.7.23 219[5.7.22]: https://github.com/sebastianbergmann/phpunit/compare/5.7.21...5.7.22 220[5.7.21]: https://github.com/sebastianbergmann/phpunit/compare/5.7.20...5.7.21 221[5.7.20]: https://github.com/sebastianbergmann/phpunit/compare/5.7.19...5.7.20 222[5.7.19]: https://github.com/sebastianbergmann/phpunit/compare/5.7.18...5.7.19 223[5.7.18]: https://github.com/sebastianbergmann/phpunit/compare/5.7.17...5.7.18 224[5.7.17]: https://github.com/sebastianbergmann/phpunit/compare/5.7.16...5.7.17 225[5.7.16]: https://github.com/sebastianbergmann/phpunit/compare/5.7.15...5.7.16 226[5.7.15]: https://github.com/sebastianbergmann/phpunit/compare/5.7.14...5.7.15 227[5.7.14]: https://github.com/sebastianbergmann/phpunit/compare/5.7.13...5.7.14 228[5.7.13]: https://github.com/sebastianbergmann/phpunit/compare/5.7.12...5.7.13 229[5.7.12]: https://github.com/sebastianbergmann/phpunit/compare/5.7.11...5.7.12 230[5.7.11]: https://github.com/sebastianbergmann/phpunit/compare/5.7.10...5.7.11 231[5.7.10]: https://github.com/sebastianbergmann/phpunit/compare/5.7.9...5.7.10 232[5.7.9]: https://github.com/sebastianbergmann/phpunit/compare/5.7.8...5.7.9 233[5.7.8]: https://github.com/sebastianbergmann/phpunit/compare/5.7.7...5.7.8 234[5.7.7]: https://github.com/sebastianbergmann/phpunit/compare/5.7.6...5.7.7 235[5.7.6]: https://github.com/sebastianbergmann/phpunit/compare/5.7.5...5.7.6 236[5.7.5]: https://github.com/sebastianbergmann/phpunit/compare/5.7.4...5.7.5 237[5.7.4]: https://github.com/sebastianbergmann/phpunit/compare/5.7.3...5.7.4 238[5.7.3]: https://github.com/sebastianbergmann/phpunit/compare/5.7.2...5.7.3 239[5.7.2]: https://github.com/sebastianbergmann/phpunit/compare/5.7.1...5.7.2 240[5.7.1]: https://github.com/sebastianbergmann/phpunit/compare/5.7.0...5.7.1 241[5.7.0]: https://github.com/sebastianbergmann/phpunit/compare/5.6...5.7.0 242 243