Skip to content

Commit d7bf058

Browse files
committed
Add 3.0 changelog and upgrade docs
1 parent bf42ebf commit d7bf058

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
CHANGELOG for 2.0
1+
CHANGELOG
22
=================
33

44
View diff for a specific commit:
55
https://github.com/johnkary/phpunit-speedtrap/commit/XXX where XXX is the commit hash
66

77
View diff between two versions:
8-
https://github.com/johnkary/phpunit-speedtrap/compare/v1.1.0...v2.0.0
8+
https://github.com/johnkary/phpunit-speedtrap/compare/v2.0.0...v3.0.0
9+
10+
## 3.0.0 (2018-02-24)
11+
12+
Version 3.0 introduces support for PHPUnit 7.0+ and PHP 7.1+.
13+
14+
Changes may be required if you have extended SpeedTrapListener. See
15+
[UPGRADE.md](UPGRADE.md) for upgrading your subclass to support 3.0.
16+
17+
* [PR #41](https://github.com/johnkary/phpunit-speedtrap/pull/41) Make compatible with phpunit 7.x
918

1019
## 2.0.0 (2017-12-06)
1120

UPGRADE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
UPGRADE FROM 2.x to 3.0
2+
=======================
3+
4+
### `JohnKary\PHPUnit\Listener\SpeedTrapListener` subclasses must ensure method signatures match PHPUnit TestListenerDefaultImplementation
5+
6+
SpeedTrapListener was upgraded to support PHPUnit 7.0, which introduced a
7+
new trait `TestListenerDefaultImplementation` containing a few new scalar type
8+
hints and void return hints. SpeedTrapListener subclasses overriding any
9+
of the below methods will require updating the new method signatures:
10+
11+
| Old signature | New signature |
12+
| -------- | --- |
13+
| `public function endTest(Test $test, $time)` | `public function endTest(Test $test, float $time): void`
14+
| `public function startTestSuite(TestSuite $suite)` | `public function startTestSuite(TestSuite $suite): void`
15+
| `public function endTestSuite(TestSuite $suite)` | `public function endTestSuite(TestSuite $suite): void`
16+
17+
118
UPGRADE FROM 1.x to 2.0
219
=======================
320

0 commit comments

Comments
 (0)