lithium\tests\cases\util\CollectionTest::testRespondsToMagic PHP Method

testRespondsToMagic() public method

public testRespondsToMagic ( )
    public function testRespondsToMagic()
    {
        $collection = new Collection(array('data' => array(new Entity(array('model' => 'lithium\\tests\\mocks\\data\\MockPost', 'data' => array('stats' => array('foo' => 'bar')))))));
        $this->assertTrue($collection->respondsTo('instances'));
        $this->assertTrue($collection->respondsTo('foobar'));
        $this->assertFalse($collection->respondsTo('foobarbaz'));
    }