public function testMatchPhrase() { $phrase = str_repeat(uniqid(' '), 3); $expectedDsl = ['match_phrase' => ['description' => ['query' => $phrase, 'slop' => 0]]]; $this->queryBuilder->matchPhrase('description', $phrase); $this->assertExpectedDsl($expectedDsl); }