public function testMap() { $this->_coll ->add(1); $this->_coll ->add(2); $res = $this->_coll ->map(function ($e) { return $e * 2; }); $this ->assertEquals(array( 2, 4, ), $res ->toArray()); }