public function offsetGetWorksAsExpected() { $this->assertEquals(['foo' => 'Foo1', 'bar' => 'Bar1'], $this->queryResult->offsetGet(0)); $this->assertNull($this->queryResult->offsetGet(2)); $this->assertNull($this->queryResult->offsetGet('foo')); }