You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ChangeLog-9.6.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
All notable changes of the PHPUnit 9.6 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
4
4
5
+
## [9.6.2] - 2023-MM-DD
6
+
7
+
### Fixed
8
+
9
+
*[#4618](https://github.com/sebastianbergmann/phpunit/issues/4618): Support for generators in `assertCount()` etc. is not marked as deprecated in PHPUnit 9.6
10
+
5
11
## [9.6.1] - 2023-02-03
6
12
7
13
### Fixed
@@ -18,5 +24,6 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil
self::createWarning('Passing an argument of type Generator for the $haystack parameter is deprecated. Support for this will be removed in PHPUnit 10.');
284
+
}
285
+
281
286
if (!$haystackinstanceof Countable && !is_iterable($haystack)) {
282
287
throw InvalidArgumentException::create(2, 'countable or iterable');
283
288
}
@@ -300,6 +305,10 @@ public static function assertCount(int $expectedCount, $haystack, string $messag
self::createWarning('Passing an argument of type Generator for the $haystack parameter is deprecated. Support for this will be removed in PHPUnit 10.');
310
+
}
311
+
303
312
if (!$haystackinstanceof Countable && !is_iterable($haystack)) {
304
313
throw InvalidArgumentException::create(2, 'countable or iterable');
305
314
}
@@ -451,6 +460,10 @@ public static function assertObjectEquals(object $expected, object $actual, stri
self::createWarning('Passing an argument of type Generator for the $expected parameter is deprecated. Support for this will be removed in PHPUnit 10.');
1947
+
}
1948
+
1949
+
if ($actualinstanceof Generator) {
1950
+
self::createWarning('Passing an argument of type Generator for the $actual parameter is deprecated. Support for this will be removed in PHPUnit 10.');
1951
+
}
1952
+
1928
1953
if (!$expectedinstanceof Countable && !is_iterable($expected)) {
1929
1954
throw InvalidArgumentException::create(1, 'countable or iterable');
1930
1955
}
@@ -1953,6 +1978,14 @@ public static function assertSameSize($expected, $actual, string $message = ''):
self::createWarning('Passing an argument of type Generator for the $expected parameter is deprecated. Support for this will be removed in PHPUnit 10.');
1983
+
}
1984
+
1985
+
if ($actualinstanceof Generator) {
1986
+
self::createWarning('Passing an argument of type Generator for the $actual parameter is deprecated. Support for this will be removed in PHPUnit 10.');
1987
+
}
1988
+
1956
1989
if (!$expectedinstanceof Countable && !is_iterable($expected)) {
1957
1990
throw InvalidArgumentException::create(1, 'countable or iterable');
0 commit comments