/** * @group Slow * @slowExecutionTime 0.0989 ms * @covers Wikia\Search\Result::getText */ public function testGetTextWithWordLimit() { $text = "we're no strangers to love. you know the rules and so do i."; $newfields = ["text" => $text]; $result = new Result(array_merge($this->defaultFields, $newfields)); $this->assertEquals("we're no strangers to love…", $result->getText('text', 5)); $this->assertEquals($text, $result->getText('text')); }