Exemplo n.º 1
0
 public function testEach()
 {
     $iterations = 0;
     $this->_List->each(function ($value) use(&$iterations) {
         $iterations++;
     });
     $this->assertEquals(5, $iterations);
 }