/** * {@inheritdoc} */ public function exists(Closure $p) { $this->initialize(); return $this->coll->exists($p); }
public function test_checking_if_doesnt_exists() { $coll = new Collection(); $coll->addItem('Test Item', 1); $actual = $coll->exists(2); $this->assertFalse($actual); }