/** * @covers Zend\Db\Adapter\Driver\Sqlsrv\Connection::setDriver */ public function testSetDriver() { $this->assertEquals($this->connection, $this->connection->setDriver(new Sqlsrv(array()))); }
/** * Register connection * * @param Connection $connection * @return Sqlsrv */ public function registerConnection(Connection $connection) { $this->connection = $connection; $this->connection->setDriver($this); return $this; }