public function testCanDoSomethingAtEachValue() { $closure = function ($value, $key) { echo $key . ':' . $value . ':'; }; Arr::at($this->array, $closure); $result = 'foo:bar:bis:ter:'; $this->expectOutputString($result); }