public function testCreateStatement()
 {
     $driver = new Oci8(array());
     $resource = oci_connect($this->variables['username'], $this->variables['password']);
     $driver->getConnection()->setResource($resource);
     $stmt = $driver->createStatement('SELECT * FROM DUAL');
     $this->assertInstanceOf('Zend\\Db\\Adapter\\Driver\\Oci8\\Statement', $stmt);
     $stmt = $driver->createStatement();
     $this->assertInstanceOf('Zend\\Db\\Adapter\\Driver\\Oci8\\Statement', $stmt);
     $this->setExpectedException('Zend\\Db\\Adapter\\Exception\\InvalidArgumentException', 'only accepts an SQL string or an oci8 resource');
     $driver->createStatement(new \stdClass());
 }
 /**
  * @covers Zend\Db\Adapter\Driver\Oci8\Statement::execute
  */
 public function testExecute()
 {
     $oci8 = new Oci8($this->variables);
     $statement = $oci8->createStatement('SELECT * FROM DUAL');
     $this->assertSame($statement, $statement->prepare());
     $result = $statement->execute();
     $this->assertInstanceOf('Zend\\Db\\Adapter\\Driver\\Oci8\\Result', $result);
     unset($resource, $oci8);
 }