lithium\tests\cases\data\collection\RecordSetTest::testOffsetExists PHP Method

testOffsetExists() public method

public testOffsetExists ( )
    public function testOffsetExists()
    {
        $this->assertFalse($this->_recordSet->offsetExists(0));
        $this->assertTrue($this->_recordSet->offsetExists(1));
        $this->assertTrue($this->_recordSet->offsetExists(2));
        $this->assertTrue($this->_recordSet->offsetExists(3));
        $this->assertTrue($this->_recordSet->offsetExists(4));
        $this->assertArrayHasKey(3, $this->_recordSet);
        $this->assertFalse($this->_objectRecordSet->offsetExists(0));
        $this->assertTrue($this->_objectRecordSet->offsetExists(1));
        $this->assertTrue($this->_objectRecordSet->offsetExists(2));
        $this->assertTrue($this->_objectRecordSet->offsetExists(3));
        $this->assertTrue($this->_objectRecordSet->offsetExists(4));
        $this->assertArrayHasKey(3, $this->_objectRecordSet);
    }