コード例 #1
0
ファイル: Oci8.php プロジェクト: eltondias/Relogio
 /**
  * Register connection
  *
  * @param  Connection $connection
  * @return Oci8
  */
 public function registerConnection(Connection $connection)
 {
     $this->connection = $connection;
     $this->connection->setDriver($this);
     // needs access to driver to createStatement()
     return $this;
 }
コード例 #2
0
 /**
  * @covers Zend\Db\Adapter\Driver\Oci8\Connection::setDriver
  */
 public function testSetDriver()
 {
     $this->assertEquals($this->connection, $this->connection->setDriver(new Oci8(array())));
 }