From 964c6f93552fb9928615e6f2997b966995902a09 Mon Sep 17 00:00:00 2001 From: Ewout Pieter den Ouden Date: Thu, 7 Feb 2019 16:58:28 +0100 Subject: [PATCH 1/5] Make sure random seed is also shown when not running --verbose --- ...r-randomized-seed-with-dependency-resolution.phpt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/end-to-end/test-order-randomized-seed-with-dependency-resolution.phpt b/tests/end-to-end/test-order-randomized-seed-with-dependency-resolution.phpt index fceab037133..c18642229d7 100644 --- a/tests/end-to-end/test-order-randomized-seed-with-dependency-resolution.phpt +++ b/tests/end-to-end/test-order-randomized-seed-with-dependency-resolution.phpt @@ -4,12 +4,11 @@ phpunit --random-order --random-order-seed=54321 --resolve-dependencies ../_file Date: Thu, 7 Feb 2019 16:59:01 +0100 Subject: [PATCH 2/5] Always print random seed in test result header --- src/TextUI/TestRunner.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/TextUI/TestRunner.php b/src/TextUI/TestRunner.php index 7c1a595ede8..4c7d77fc2b8 100644 --- a/src/TextUI/TestRunner.php +++ b/src/TextUI/TestRunner.php @@ -338,13 +338,6 @@ public function doRun(Test $suite, array $arguments = [], bool $exit = true): Te $this->writeMessage('Runtime', $runtime); - if ($arguments['executionOrder'] === TestSuiteSorter::ORDER_RANDOMIZED) { - $this->writeMessage( - 'Random seed', - $arguments['randomOrderSeed'] - ); - } - if (isset($arguments['configuration'])) { $this->writeMessage( 'Configuration', @@ -367,6 +360,13 @@ public function doRun(Test $suite, array $arguments = [], bool $exit = true): Te } } + if ($arguments['executionOrder'] === TestSuiteSorter::ORDER_RANDOMIZED) { + $this->writeMessage( + 'Random seed', + $arguments['randomOrderSeed'] + ); + } + if (isset($tooFewColumnsRequested)) { $this->writeMessage('Error', 'Less than 16 columns requested, number of columns set to 16'); } From 2ef144c0812a77ce06d4a797d13c646422fb2f77 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 7 Feb 2019 17:48:29 +0100 Subject: [PATCH 3/5] Delete old ChangeLog file --- ChangeLog-6.5.md | 121 ----------------------------------------------- 1 file changed, 121 deletions(-) delete mode 100644 ChangeLog-6.5.md diff --git a/ChangeLog-6.5.md b/ChangeLog-6.5.md deleted file mode 100644 index 366b627dd16..00000000000 --- a/ChangeLog-6.5.md +++ /dev/null @@ -1,121 +0,0 @@ -# Changes in PHPUnit 6.5 - -All notable changes of the PHPUnit 6.5 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. - -## [6.5.14] - 2019-02-01 - -### Fixed - -* Fixed [#3459](https://github.com/sebastianbergmann/phpunit/issues/3459): `@requires` function swallows digits at the end of function name - -## [6.5.13] - 2018-09-08 - -### Fixed - -* Fixed [#3181](https://github.com/sebastianbergmann/phpunit/issues/3181): `--filter` should be case-insensitive -* Fixed [#3234](https://github.com/sebastianbergmann/phpunit/issues/3234): `assertArraySubset()` with `$strict=true` does not display differences properly -* Fixed [#3254](https://github.com/sebastianbergmann/phpunit/issues/3254): TextUI test runner cannot run a `Test` instance that is not a `TestSuite` - -## [6.5.12] - 2018-08-22 - -### Fixed - -* Fixed [#3248](https://github.com/sebastianbergmann/phpunit/issues/3248) and [#3233](https://github.com/sebastianbergmann/phpunit/issues/3233): `phpunit.xsd` dictates element order where it should not -* Fixed [#3251](https://github.com/sebastianbergmann/phpunit/issues/3251): TeamCity result logger is missing test duration information - -## [6.5.11] - 2018-08-07 - -### Fixed - -* Fixed [#3219](https://github.com/sebastianbergmann/phpunit/issues/3219): `getMockFromWsdl()` generates invalid PHP code when WSDL filename contains special characters - -## [6.5.10] - 2018-08-03 - -### Fixed - -* Fixed [#3209](https://github.com/sebastianbergmann/phpunit/issues/3209): `Test::run()` and `TestCase::run()` interface contradiction -* Fixed [#3218](https://github.com/sebastianbergmann/phpunit/issues/3218): `prefix` attribute for `directory` node missing from `phpunit.xml` XSD -* Fixed [#3225](https://github.com/sebastianbergmann/phpunit/issues/3225): `coverage-php` missing from `phpunit.xsd` - -## [6.5.9] - 2018-07-03 - -### Fixed - -* Fixed [#3142](https://github.com/sebastianbergmann/phpunit/issues/3142): Method-level annotations (`@backupGlobals`, `@backupStaticAttributes`, `@errorHandler`, `@preserveGlobalState`) do not override class-level annotations - -## [6.5.8] - 2018-04-10 - -### Fixed - -* Fixed [#2830](https://github.com/sebastianbergmann/phpunit/issues/2830): `@runClassInSeparateProcess` does not work for tests that use `@dataProvider` - -## [6.5.7] - 2018-02-26 - -### Fixed - -* Fixed [#2974](https://github.com/sebastianbergmann/phpunit/issues/2974): JUnit XML logfile contains invalid characters when test output contains binary data - -## [6.5.6] - 2018-02-01 - -### Fixed - -* Fixed [#2236](https://github.com/sebastianbergmann/phpunit/issues/2236): Exceptions in `tearDown()` do not affect `getStatus()` -* Fixed [#2950](https://github.com/sebastianbergmann/phpunit/issues/2950): Class extending `PHPUnit\Framework\TestSuite` does not extend `PHPUnit\FrameworkTestCase` -* Fixed [#2972](https://github.com/sebastianbergmann/phpunit/issues/2972): PHPUnit crashes when test suite contains both `.phpt` files and unconventionally named tests - -## [6.5.5] - 2017-12-17 - -### Fixed - -* 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 - -## [6.5.4] - 2017-12-10 - -### Changed - -* Require version 5.0.5 of `phpunit/phpunit-mock-objects` for [phpunit-mock-objects#394](https://github.com/sebastianbergmann/phpunit-mock-objects/issues/394) - -## [6.5.3] - 2017-12-06 - -### Fixed - -* Fixed an issue with PHPT tests when `forceCoversAnnotation="true"` is configured - -## [6.5.2] - 2017-12-02 - -### Changed - -* Require version 5.0.4 of `phpunit/phpunit-mock-objects` for [phpunit-mock-objects#388](https://github.com/sebastianbergmann/phpunit-mock-objects/issues/388) - -## [6.5.1] - 2017-12-01 - -* Fixed [#2886](https://github.com/sebastianbergmann/phpunit/pull/2886): Forced environment variables do not affect `getenv()` - -## [6.5.0] - 2017-12-01 - -### Added - -* Implemented [#2286](https://github.com/sebastianbergmann/phpunit/issues/2286): Optional `$exit` parameter for `PHPUnit\TextUI\TestRunner::run()` -* Implemented [#2496](https://github.com/sebastianbergmann/phpunit/issues/2496): Allow shallow copy of dependencies - -### Fixed - -* Fixed [#2654](https://github.com/sebastianbergmann/phpunit/issues/2654): Problems with `assertJsonStringEqualsJsonString()` -* Fixed [#2810](https://github.com/sebastianbergmann/phpunit/pull/2810): Code Coverage for PHPT tests does not work - -[6.5.14]: https://github.com/sebastianbergmann/phpunit/compare/6.5.13...6.5.14 -[6.5.13]: https://github.com/sebastianbergmann/phpunit/compare/6.5.12...6.5.13 -[6.5.12]: https://github.com/sebastianbergmann/phpunit/compare/6.5.11...6.5.12 -[6.5.11]: https://github.com/sebastianbergmann/phpunit/compare/6.5.10...6.5.11 -[6.5.10]: https://github.com/sebastianbergmann/phpunit/compare/6.5.9...6.5.10 -[6.5.9]: https://github.com/sebastianbergmann/phpunit/compare/6.5.8...6.5.9 -[6.5.8]: https://github.com/sebastianbergmann/phpunit/compare/6.5.7...6.5.8 -[6.5.7]: https://github.com/sebastianbergmann/phpunit/compare/6.5.6...6.5.7 -[6.5.6]: https://github.com/sebastianbergmann/phpunit/compare/6.5.5...6.5.6 -[6.5.5]: https://github.com/sebastianbergmann/phpunit/compare/6.5.4...6.5.5 -[6.5.4]: https://github.com/sebastianbergmann/phpunit/compare/6.5.3...6.5.4 -[6.5.3]: https://github.com/sebastianbergmann/phpunit/compare/6.5.2...6.5.3 -[6.5.2]: https://github.com/sebastianbergmann/phpunit/compare/6.5.1...6.5.2 -[6.5.1]: https://github.com/sebastianbergmann/phpunit/compare/6.5.0...6.5.1 -[6.5.0]: https://github.com/sebastianbergmann/phpunit/compare/6.4...6.5.0 - From 0ecf7fd622ac750cb1f3bc9ba368994b528e566c Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 7 Feb 2019 17:49:32 +0100 Subject: [PATCH 4/5] Update ChangeLog --- ChangeLog-7.5.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ChangeLog-7.5.md b/ChangeLog-7.5.md index 41d7a9a67b5..ad6438a0dbe 100644 --- a/ChangeLog-7.5.md +++ b/ChangeLog-7.5.md @@ -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.5] - 2019-MM-DD + +### Fixed + +* Fixed [#3515](https://github.com/sebastianbergmann/phpunit/issues/3515): Random order seed is only printed in verbose mode + ## [7.5.4] - 2019-02-07 ### Fixed @@ -57,6 +63,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.5]: https://github.com/sebastianbergmann/phpunit/compare/7.5.4...7.5.5 [7.5.4]: https://github.com/sebastianbergmann/phpunit/compare/7.5.3...7.5.4 [7.5.3]: https://github.com/sebastianbergmann/phpunit/compare/7.5.2...7.5.3 [7.5.2]: https://github.com/sebastianbergmann/phpunit/compare/7.5.1...7.5.2 From aff13c0203525cf8861fa5433bfd169cd514c987 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 7 Feb 2019 17:55:45 +0100 Subject: [PATCH 5/5] Update ChangeLog --- ChangeLog-8.0.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ChangeLog-8.0.md b/ChangeLog-8.0.md index 8f01c662c65..dd5cfdc26d5 100644 --- a/ChangeLog-8.0.md +++ b/ChangeLog-8.0.md @@ -2,6 +2,12 @@ All notable changes of the PHPUnit 8.0 release series are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. +## [8.0.3] - 2019-MM-DD + +### Fixed + +* Fixed [#3515](https://github.com/sebastianbergmann/phpunit/issues/3515): Random order seed is only printed in verbose mode + ## [8.0.2] - 2019-02-07 ### Fixed @@ -45,6 +51,7 @@ All notable changes of the PHPUnit 8.0 release series are documented in this fil * Implemented [#2762](https://github.com/sebastianbergmann/phpunit/issues/2762): Drop support for PHP 7.1 * Implemented [#3123](https://github.com/sebastianbergmann/phpunit/issues/3123): Remove `PHPUnit_Framework_MockObject_MockObject` +[8.0.3]: https://github.com/sebastianbergmann/phpunit/compare/8.0.2...8.0.3 [8.0.2]: https://github.com/sebastianbergmann/phpunit/compare/8.0.1...8.0.2 [8.0.1]: https://github.com/sebastianbergmann/phpunit/compare/8.0.0...8.0.1 [8.0.0]: https://github.com/sebastianbergmann/phpunit/compare/7.5...8.0.0