/** * @param Connection $connection * @return IbmDb2 */ public function registerConnection(Connection $connection) { $this->connection = $connection; $this->connection->setDriver($this); return $this; }
/** * @covers Zend\Db\Adapter\Driver\IbmDb2\Connection::setDriver */ public function testSetDriver() { $this->assertEquals($this->connection, $this->connection->setDriver(new IbmDb2(array()))); }