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 MDB2 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: MDB2_skipif.php 257863 2008-04-18 23:50:27Z lukasfeiler $
19
*/
20
 
21
if (!@include_once 'MDB2.php') {
22
    print 'skip could not find MDB2.php';
23
    exit;
24
} else {
25
    require_once dirname(dirname(__FILE__)) . '/settings.php';
26
    $db = @MDB2::connect(DSN);
27
    if (PEAR::isError($db)) {
28
        print 'skip could not connect using DSN ' . DSN;
29
        exit;
30
    }
31
}
32
?>