Example #1
0
 /** @test */
 public function it_can_all_select_keys_from_a_collection_with_exception()
 {
     $collection = new Collection(['product_id' => 1, 'name' => 'Desk', 'price' => 100, 'discount' => false]);
     $filtered = $collection->except(['price', 'discount']);
     $this->assertEquals(['product_id' => 1, 'name' => 'Desk'], $filtered->all());
 }