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 DBLAYER 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: skipif.php 257863 2008-04-18 23:50:27Z lukasfeiler $
19
*/
20
 
21
if (!defined('DBLAYER')) {
22
    if (getenv('PHP_PEAR_XML_QUERY2XML_TEST_DBLAYER') != '') {
23
        define('DBLAYER', getenv('PHP_PEAR_XML_QUERY2XML_TEST_DBLAYER'));
24
    } else {
25
        define('DBLAYER', 'MDB2');
26
    }
27
}
28
if (isset($db_layers)) {
29
    if (!in_array(DBLAYER, $db_layers)) {
30
        print 'skip this test does not support ' . DBLAYER;
31
        exit;
32
    }
33
}
34
if (!@include_once DBLAYER . '_skipif.php') {
35
    print 'skip could not find ' . DBLAYER . '_skipif.php';
36
    exit;
37
}
38
?>