/** * Register statement prototype * * @param Statement $statementPrototype * @return Oci8 */ public function registerStatementPrototype(Statement $statementPrototype) { $this->statementPrototype = $statementPrototype; $this->statementPrototype->setDriver($this); // needs access to driver to createResult() return $this; }
/** * @covers Zend\Db\Adapter\Driver\Oci8\Statement::setDriver */ public function testSetDriver() { $this->assertEquals($this->statement, $this->statement->setDriver(new Oci8(array()))); }