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