コード例 #1
0
 /** @test */
 public function should_filter_the_collection()
 {
     $filtered = $this->collection->filter(function ($person) {
         return substr($person, 0, 1) === 'M';
     });
     $this->assertEquals(2, $filtered->count());
 }