public function testFind() { $foundElem = $this->map->find(function ($k, $v) { return 'foo' === $k && 'bar' === $v; }); $this->assertEquals(array('foo', 'bar'), $foundElem->get()); $this->assertTrue($this->map->find(function () { return false; })->isEmpty()); }