public function testGetFirst() { $col = new Collection(); $this->assertNull($col->getFirst(), 'getFirst() returns null on an empty collection'); $data = array('bar1', 'bar2', 'bar3'); $col = new Collection($data); $this->assertEquals('bar1', $col->getFirst(), 'getFirst() returns value of the first element in the collection'); }