예제 #1
0
 /**
  * @covers Zend\Db\Adapter\Driver\Sqlsrv\Connection::setDriver
  */
 public function testSetDriver()
 {
     $this->assertEquals($this->connection, $this->connection->setDriver(new Sqlsrv(array())));
 }
예제 #2
0
파일: Sqlsrv.php 프로젝트: haoyanfei/zf2
 /**
  * Register connection
  *
  * @param  Connection $connection
  * @return Sqlsrv
  */
 public function registerConnection(Connection $connection)
 {
     $this->connection = $connection;
     $this->connection->setDriver($this);
     return $this;
 }