public function testWhere() { $array = [100, '200', 300, '400', 500]; $array = Arr::where($array, function ($key, $value) { return is_string($value); }); $this->assertEquals([1 => 200, 3 => 400], $array); }