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