Skip to content

Commit f74b143

Browse files
authored
Merge pull request #41 from Yoast/feature/changelog-1.0.0
Changelog for the release of version 1.0.0
2 parents 0c45fd3 + 8982a89 commit f74b143

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

CHANGELOG.md

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

1010
_Nothing yet._
1111

12+
## [1.0.0] - 2021-06-21
13+
14+
### Added
15+
* `Yoast\PHPUnitPolyfills\Polyfills\AssertClosedResource` trait to polyfill the `Assert::assertIsClosedResource()` and `Assert::assertIsNotClosedResource()` methods as introduced in PHPUnit 9.3.0. PR [#27].
16+
* `Yoast\PHPUnitPolyfills\Polyfills\AssertObjectEquals` trait to polyfill the `Assert::assertObjectEquals()` method as introduced in PHPUnit 9.4.0. PR [#38].
17+
The behaviour of the polyfill closely matches the PHPUnit native implementation, but is not 100% the same.
18+
Most notably, the polyfill will check the type of the returned value from the comparator method instead of the enforcing a return type declaration of the comparator method.
19+
* `Yoast\PHPUnitPolyfills\Polyfills\EqualToSpecializations` trait to polyfill the `Assert::equalToCanonicalizing()`, `Assert::equalToIgnoringCase()` and `Assert::equalToWithDelta()` methods as introduced in PHPUnit 9.0.0. PR [#28], props [Marc Siegrist].
20+
* Polyfills for the PHP native `Error` and `TypeError` classes as introduced in PHP 7.0. PR [#36].
21+
* README: FAQ section covering functionality removed from PHPUnit and usage with a Phar.
22+
23+
### Changed
24+
* The minimum supported PHP version has been lowered to PHP 5.4 (was 5.5). PR [#19].
25+
* `XTestCase`: the visibility of the `setUpFixtures()` and the `tearDownFixtures()` methods has been changed to `protected` (was `public`). Issue [#10], PR [#20], props [Mark Baker] for reporting.
26+
* README: re-ordered the sections and various other improvements.
27+
* Initial preparation for PHPUnit 10.0 compatibility.
28+
* General housekeeping.
29+
30+
### Fixed
31+
* Issue [#17] via PR [#18] - `AssertStringContainString`: PHPUnit < 6.4.2 would throw a _"mb_strpos(): empty delimiter"_ PHP warning when the `$needle` passed was an empty string. Props [Gary Jones].
32+
33+
[#10]: https://github.com/Yoast/PHPUnit-Polyfills/issues/10
34+
[#17]: https://github.com/Yoast/PHPUnit-Polyfills/issues/17
35+
[#18]: https://github.com/Yoast/PHPUnit-Polyfills/pull/18
36+
[#19]: https://github.com/Yoast/PHPUnit-Polyfills/pull/19
37+
[#20]: https://github.com/Yoast/PHPUnit-Polyfills/pull/20
38+
[#27]: https://github.com/Yoast/PHPUnit-Polyfills/pull/27
39+
[#28]: https://github.com/Yoast/PHPUnit-Polyfills/pull/28
40+
[#36]: https://github.com/Yoast/PHPUnit-Polyfills/pull/36
41+
[#38]: https://github.com/Yoast/PHPUnit-Polyfills/pull/38
42+
43+
1244
## [0.2.0] - 2020-11-25
1345

1446
### Added
1547
* `Yoast\PHPUnitPolyfills\TestListeners\TestListenerDefaultImplementation`: a cross-version compatible base implementation for `TestListener`s using snake_case method names to replace the PHPUnit native method names.
1648
* `Yoast\PHPUnitPolyfills\Helpers\AssertAttributeHelper` trait containing a `getProperty()` and a `getPropertyValue()` method.
1749
This is a stop-gap solution for the removal of the PHPUnit `assertAttribute*()` methods in PHPUnit 9.
1850
It is strongly recommended to refactor your tests/classes in a way that protected and private properties no longer be tested directly as they should be considered an implementation detail.
19-
However, if for some reason the value of protected or private properties still needs to be tested, this helper can be used to get access to their value.
51+
However, if for some reason the value of protected or private properties still needs to be tested, this helper can be used to get access to their value.
2052
* `Yoast\PHPUnitPolyfills\Polyfills\AssertNumericType` trait to polyfill the `Assert::assertFinite()`, `Assert::assertInfinite()` and `Assert::assertNan()` methods as introduced in PHPUnit 5.0.0.
2153
* `Yoast\PHPUnitPolyfills\Polyfills\ExpectException` trait to polyfill the `TestCase::expectException()`, `TestCase::expectExceptionMessage()`, `TestCase::expectExceptionCode()` and `TestCase::expectExceptionMessageRegExp()` methods, as introduced in PHPUnit 5.2.0 to replace the `Testcase::setExpectedException()` and the `Testcase::setExpectedExceptionRegExp()` method.
2254
* `Yoast\PHPUnitPolyfills\Polyfills\AssertFileDirectory` trait to polyfill the `Assert::assertIsReadable()`, `Assert::assertIsWritable()` methods and their file/directory based variations, as introduced in PHPUnit 5.6.0.
@@ -35,5 +67,10 @@ Initial release.
3567

3668

3769
[Unreleased]: https://github.com/Yoast/PHPUnit-Polyfills/compare/main...HEAD
70+
[1.0.0]: https://github.com/Yoast/PHPUnit-Polyfills/compare/0.2.0...1.0.0
3871
[0.2.0]: https://github.com/Yoast/PHPUnit-Polyfills/compare/0.1.0...0.2.0
3972
[0.1.0]: https://github.com/Yoast/PHPUnit-Polyfills/compare/e8f8b7a73737aa9a5974bd9c73d2bd8d09f69873...0.1.0
73+
74+
[Gary Jones]: https://github.com/GaryJones
75+
[Marc Siegrist]: https://github.com/mergeMarc
76+
[Mark Baker]: https://github.com/MarkBaker

0 commit comments

Comments
 (0)