lithium\tests\cases\data\CollectionTest::testOffsetExists PHP Method

testOffsetExists() public method

Tests Collection::offsetExists().
public testOffsetExists ( )
    public function testOffsetExists()
    {
        $collection = new MockCollection();
        $this->assertEqual($collection->offsetExists(0), false);
        $collection = new MockCollection(array('data' => array('bar', 'baz', 'bob' => 'bill')));
        $this->assertEqual($collection->offsetExists(0), true);
        $this->assertEqual($collection->offsetExists(1), true);
    }