/** * @covers \JetBag\Bag::except */ public function testExceptJet() { $this->bag->merge(array('foo' => 'bar', 'baz' => 'tar', 'zip' => 'tip', 'vim' => 'bom')); $this->assertSame(array('foo' => 'bar', 'zip' => 'tip'), $this->bag->except(new Bag(array('baz', 'vim')))->items()); $this->assertSame(array('foo' => 'bar', 'zip' => 'tip'), $this->bag->except(new Bag(array('baz', 'vim', 'nonexistent')))->items()); }
public function deniedList($items) { $items = new Bag(func_num_args() > 1 ? func_get_args() : $items); return $items->except($this->rules); }