Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * @covers Zend\Db\Adapter\Driver\Oci8\Connection::setDriver
  */
 public function testSetDriver()
 {
     $this->assertEquals($this->connection, $this->connection->setDriver(new Oci8(array())));
 }