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