Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**This is included from unit tests to skip the test if ADOdb is not available.
3
*
4
* LICENSE:
5
* This source file is subject to version 2.1 of the LGPL
6
* that is bundled with this package in the file LICENSE.
7
*
8
* COPYRIGHT:
9
* Empowered Media
10
* http://www.empoweredmedia.com
11
* 481 Eighth Avenue Suite 1530
12
* New York, NY 10001
13
*
14
* @copyright Empowered Media 2006
15
* @license http://www.gnu.org/copyleft/lesser.html  LGPL Version 2.1
16
* @author Lukas Feiler <lukas.feiler@lukasfeiler.com>
17
* @package XML_Query2XML
18
* @version $Id: ADOdbException_skipif.php 257863 2008-04-18 23:50:27Z lukasfeiler $
19
*/
20
 
21
if (!@include_once 'adodb/adodb.inc.php') {
22
    print 'skip could not find adodb/adodb.inc.php';
23
    exit;
24
} elseif (!@include_once 'adodb/adodb-exceptions.inc.php') {
25
    print 'skip could not find adodb/adodb-exceptions.inc.php';
26
    exit;
27
} else {
28
    require_once dirname(dirname(__FILE__)) . '/settings.php';
29
    $db = false;
30
    try {
31
        $db = @NewADOConnection(DSN);
32
    } catch (Exception $e) {}
33
    if (!$db) {
34
        print 'skip could not connect using DSN ' . DSN;
35
        exit;
36
    }
37
}
38
?>