public function testSuggestions() { $input = "orangee"; $choices = array("apple", "orange", "pear"); $suggestions = CapabilityProfile::suggestNearest($input, $choices, 1); $this->assertEquals(1, count($suggestions)); $this->assertEquals("orange", $suggestions[0]); }