public function all() { $this->sortHaystack(); return array_keys($this->sorted_haystack); }
/** * Test all() method */ public function testAll() { $text_finder = new Finder('bananna', ['apple', 'kiwi', 'Ü◘ö']); $this->assertCount(3, $text_finder->all()); }