From ba26d2c63cb36ca6be668131dbbd5dd85ea046f2 Mon Sep 17 00:00:00 2001 From: Jerome Coppee Date: Wed, 11 Oct 2023 11:17:05 +0200 Subject: [PATCH] fix: phpcs --- .../tests/Unit/Elasticsearch/Response/ResponseAiTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EMS/common-bundle/tests/Unit/Elasticsearch/Response/ResponseAiTest.php b/EMS/common-bundle/tests/Unit/Elasticsearch/Response/ResponseAiTest.php index 44c22a6c4..eab4fd109 100644 --- a/EMS/common-bundle/tests/Unit/Elasticsearch/Response/ResponseAiTest.php +++ b/EMS/common-bundle/tests/Unit/Elasticsearch/Response/ResponseAiTest.php @@ -34,7 +34,7 @@ public function testFromArray(): void $response = Response::fromArray($data); $this->assertTrue($response->hasDocuments()); - $this->assertEquals(2, iterator_count($response->getDocuments())); + $this->assertEquals(2, \iterator_count($response->getDocuments())); $this->assertInstanceOf(Document::class, $response->getDocument(0)); $this->assertInstanceOf(Aggregation::class, $response->getAggregation('test_agg')); $this->assertEquals('scroll123', $response->getScrollId()); @@ -60,7 +60,7 @@ public function testFromResultSet(): void $response = Response::fromResultSet($resultSet); $this->assertTrue($response->hasDocuments()); - $this->assertEquals(1, iterator_count($response->getDocuments())); + $this->assertEquals(1, \iterator_count($response->getDocuments())); $this->assertInstanceOf(Document::class, $response->getDocument(0)); $this->assertEquals(5, $response->getTotal()); }