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

testClosed() public method

Tests Collection::closed && Collection::close.
public testClosed ( )
    public function testClosed()
    {
        $collection = new MockCollection();
        $this->assertTrue($collection->closed());
        $collection = new MockCollection(array('result' => 'foo'));
        $this->assertFalse($collection->closed());
        $collection->close();
        $this->assertTrue($collection->closed());
    }