We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd04c0e commit 0015e6dCopy full SHA for 0015e6d
tests/Model/CachingIteratorTest.php
@@ -53,7 +53,7 @@ public function testIterationWithEmptySet()
53
54
public function testPartialIterationDoesNotExhaust()
55
{
56
- $traversable = $this->getTraversableThatThrows([1, 2, new Exception()]);
+ $traversable = $this->getTraversable([1, 2, new Exception()]);
57
$iterator = new CachingIterator($traversable);
58
59
$expectedKey = 0;
@@ -110,13 +110,6 @@ public function testCountWithEmptySet()
110
}
111
112
private function getTraversable($items)
113
- {
114
- foreach ($items as $item) {
115
- yield $item;
116
- }
117
118
-
119
- private function getTraversableThatThrows($items)
120
121
foreach ($items as $item) {
122
if ($item instanceof Exception) {
0 commit comments