示例#1
0
 public function test_reverse()
 {
     $data = new Collection(array('foo', 'bar', 'baz'));
     $reversed = $data->reverse();
     $this->assertEquals(array('baz', 'bar', 'foo'), array_values($reversed->all()));
 }