public function testShouldImplementKeyMethodFromIterator() { // Arrange $cursor = $this->getCursor(); $this->setProtected($cursor, 'position', 7); // Assertion $this->assertEquals(7, $cursor->key()); }