lithium\tests\cases\data\source\MongoDbTest::testRespondsToWithServer PHP Method

testRespondsToWithServer() public method

    public function testRespondsToWithServer()
    {
        $db = new MongoDb($this->_testConfig);
        $db->server = new MockMongoConnection();
        $this->assertTrue($db->respondsTo('listDBs'));
        $this->assertFalse($db->respondsTo('foobarbaz'));
    }