Exemplo n.º 1
0
 public function testFirstAndLast()
 {
     $collection = new Collection([1, 2, 3]);
     $this->assertSame(1, $collection->first());
     $this->assertSame(3, $collection->last());
 }