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 a79a772 commit afc9af0Copy full SHA for afc9af0
tests/Elasticsearch/Tests/Helper/Iterators/SearchResponseIteratorTest.php
@@ -78,10 +78,7 @@ public function testWithNoResults()
78
79
$responses = new SearchResponseIterator($mock_client, $search_params);
80
81
- foreach ($responses as $i => $response) {
82
- }
83
-
84
- $this->assertEquals(0, $i);
+ $this->assertCount(0, $responses);
85
}
86
87
public function testWithScan()
@@ -179,9 +176,6 @@ public function testWithScan()
179
176
180
177
181
178
182
183
184
185
- $this->assertEquals(2, $i);
+ $this->assertCount(2, $responses);
186
187
0 commit comments