Skip to content

Commit 7e1629b

Browse files
committed
Changelog for release 1.2.0
Includes adding note about Mockery 1.6.0 to the README.
1 parent 57693fe commit 7e1629b

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@ This projects adheres to [Keep a CHANGELOG](http://keepachangelog.com/) and uses
99

1010
_Nothing yet._
1111

12+
## [1.2.0] - 2023-09-27
13+
14+
### Added
15+
16+
* Support for the new PHPUnit `assertObjectHasProperty()` and `assertObjectNotHasProperty()` assertions, as polyfilled via the PHPUnit Polyfills in all test cases. PR [#64]
17+
This means that the `assertObjectHasProperty()` and `assertObjectNotHasProperty()` assertions can now safely be used in all tests in classes which extend one of the WP Test Utils TestCases.
18+
19+
### Changed
20+
* `Yoast\WPTestUtils\BrainMonkey\YoastTestCase`: the parameter names used in a few of the stubs for WP Core functions have been updated to stay in line with the names used in WP Core. PR [#53]
21+
* The [PHPUnit Polyfills] dependency has been updated to require [version `^1.1.0`](https://github.com/Yoast/PHPUnit-Polyfills/releases/tag/1.1.0) (was `^1.0.5`). PRs [#52], [#64]
22+
* Verified PHP 8.3 compatibility.
23+
* General housekeeping.
24+
25+
[#52]: https://github.com/Yoast/wp-test-utils/pull/52
26+
[#53]: https://github.com/Yoast/wp-test-utils/pull/53
27+
[#64]: https://github.com/Yoast/wp-test-utils/pull/64
28+
29+
1230
## [1.1.1] - 2022-11-17
1331

1432
### Fixed
@@ -68,7 +86,6 @@ See the [Make Core dev-note](https://make.wordpress.org/core/2021/09/27/changes-
6886
### Fixes
6987
* The [PHPUnit Polyfills] dependency introduced three new polyfills in the `1.0.0` version. These are now supported in all test cases. [#17]
7088

71-
7289
Thanks [Pierre Gordon] and [Pascal Birchler] for making feature suggestions for this version.
7390

7491
[#16]: https://github.com/Yoast/wp-test-utils/pull/16
@@ -118,6 +135,7 @@ Initial release.
118135

119136

120137
[Unreleased]: https://github.com/Yoast/wp-test-utils/compare/main...HEAD
138+
[1.2.0]: https://github.com/Yoast/wp-test-utils/compare/1.1.1...1.2.0
121139
[1.1.1]: https://github.com/Yoast/wp-test-utils/compare/1.1.0...1.1.1
122140
[1.1.0]: https://github.com/Yoast/wp-test-utils/compare/1.0.0...1.1.0
123141
[1.0.0]: https://github.com/Yoast/wp-test-utils/compare/0.2.2...1.0.0

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ To tell PHPUnit to use this bootstrap file, use `--bootstrap tests/bootstrap.php
174174

175175
#### Helpers to create test doubles for unavailable classes
176176

177+
> :bulb: The problem this feature solves has been fixed in Mockery 1.6.0, so if you use Mockery 1.6.0 or higher for test runs against PHP 8.2 or higher, you should no longer need this solution.
178+
177179
##### Why you may need to create test doubles for unavailable classes
178180

179181
Typically a mock for an unavailable class is created using `Mockery::mock()` or `Mockery::mock( 'Unavailable' )`.

0 commit comments

Comments
 (0)