public function testIfItReturnMostRepeatedValueInStringArray() { $array = ['Apple', 'Orange', 'Plum', 'Apple', 'Grape', 'Apple']; $utils = new ArrayUtils(); $mostRepeatedValue = $utils->mostRepeatedValue($array); $this->assertEquals('Apple', $mostRepeatedValue); }