Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
v2.0.5-git | ||
---------- | ||
|
||
[jan] Add unit tests for Oracle. | ||
|
||
|
||
------ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* Prepare the test setup. | ||
*/ | ||
require_once __DIR__ . '/Base.php'; | ||
|
||
/** | ||
* Copyright 2010-2014 Horde LLC (http://www.horde.org/) | ||
* | ||
* @author Jan Schneider <jan@horde.org> | ||
* @category Horde | ||
* @package Content | ||
* @subpackage UnitTests | ||
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 | ||
*/ | ||
class Content_Sql_Oci8Test extends Content_Test_Sql_Base | ||
{ | ||
public static function setUpBeforeClass() | ||
{ | ||
if (!extension_loaded('oci8')) { | ||
self::$reason = 'No oci8 extension'; | ||
return; | ||
} | ||
$config = self::getConfig('CONTENT_SQL_OCI8_TEST_CONFIG', | ||
__DIR__ . '/..'); | ||
if ($config && !empty($config['content']['sql']['oci8'])) { | ||
self::$db = new Horde_Db_Adapter_Oci8($config['content']['sql']['oci8']); | ||
parent::setUpBeforeClass(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters