summaryrefslogtreecommitdiff
path: root/trunk/reprap/web/james-bom/MDB2/MDB2-2.4.1/tests/basic.phpt
blob: 1a21ef8c2522c5956e73dcd3bdd131912559d943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
MDB2: Basic connectivity
--FILE--
<?php

require_once 'MDB2_Connect_Test.php';
require_once 'config.php';

if (! ($dbc =& new MDB2_Connect_Test(true)))
{
	die("Unable to instantiate MDB2 object\n");
}
$e = $dbc->connect();

if (PEAR::isError($e)) {
    print $e->getMessage() . "\n";
}

die();


?>
echo 'Success!';

--EXPECT--
Success!