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