public function testExists() { $this->coll->add("one"); $this->coll->add("two"); $exists = $this->coll->exists(function ($e) { return $e == "one"; }); $this->assertTrue($exists); $exists = $this->coll->exists(function ($e) { return $e == "other"; }); $this->assertFalse($exists); }