public function testItemAt() { $arr = ['a', 'b']; $collection = new Collection($arr); $this->assertSame($arr[0], $collection->itemAt(0)); $this->assertSame($arr[1], $collection->itemAt(1)); $this->assertNull($collection->itemAt(2)); }