public function test_last_returns_last_item_in_collection() { $c = new Collection(array('foo', 'bar')); $this->assertEquals('bar', $c->last()); }