Permalink
Browse files

[2.1] Fix variable Name and Resource on Oracle Driver Test

  • Loading branch information...
1 parent f5e47e7 commit 5e270a495eb2cc12dcf59d57ea5b31c28d5b58c1 @samsonasik committed Jan 23, 2013
@@ -25,12 +25,8 @@ public function testGetCurrentSchema()
public function testSetResource()
{
$this->markTestIncomplete('edit this');
- $resource = sqlsrv_connect(
- $this->variables['hostname'], array(
- 'UID' => $this->variables['username'],
- 'PWD' => $this->variables['password']
- )
- );
+ $resource = oci_connect($this->variables['username'], $this->variables['password']);
+
$connection = new Connection(array());
$this->assertSame($connection, $connection->setResource($resource));
@@ -6,7 +6,7 @@
/**
* @group integration
- * @group integration-sqlsrv
+ * @group integration-oracle
*/
class StatementIntegrationTest extends \PHPUnit_Framework_TestCase
{
@@ -31,7 +31,7 @@ protected function setUp()
}
if (!extension_loaded('oci8')) {
- $this->fail('The phpunit group integration-sqlsrv was enabled, but the extension is not loaded.');
+ $this->fail('The phpunit group integration-oracle was enabled, but the extension is not loaded.');
}
}
@@ -90,6 +90,6 @@ public function testExecute()
$result = $statement->execute();
$this->assertInstanceOf('Zend\Db\Adapter\Driver\Oci8\Result', $result);
- unset($resource, $sqlsrvResource);
+ unset($resource, $oci8);
}
}

0 comments on commit 5e270a4

Please sign in to comment.