cvs: pear /DB/tests db_parsedsn.phpt /DB/tests/mysql connect.inc
| From: | Stig Bakken | Date: | Wed, 22 May 2002 10:48:17 +0000 |
| Subject: | cvs: pear /DB/tests db_parsedsn.phpt /DB/tests/mysql connect.inc | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4036@lists.php.net to get a copy of this message | ||
ssb Wed May 22 06:48:17 2002 EDT
Modified files:
/pear/DB/tests db_parsedsn.phpt
/pear/DB/tests/mysql connect.inc
Log:
* another test fix
# lots more need the same fix, no more time right now
Index: pear/DB/tests/db_parsedsn.phpt
diff -u pear/DB/tests/db_parsedsn.phpt:1.3 pear/DB/tests/db_parsedsn.phpt:1.4
--- pear/DB/tests/db_parsedsn.phpt:1.3 Sun May 12 03:29:24 2002
+++ pear/DB/tests/db_parsedsn.phpt Wed May 22 06:48:15 2002
@@ -1,13 +1,13 @@
--TEST--
DB::parseDSN test
--SKIPIF--
-<?php if (!@include("DB.php")) print "skip"; ?>
+<?php if (!@include(dirname(__FILE__)."/../DB.php")) print "skip"; ?>
--FILE--
<?php // -*- C++ -*-
// Test for: DB::parseDSN()
-include_once dirname(__FILE__)."/../../DB.php";
+include_once dirname(__FILE__)."/../DB.php";
function test($dsn) {
echo "DSN: $dsn\n";
Index: pear/DB/tests/mysql/connect.inc
diff -u pear/DB/tests/mysql/connect.inc:1.3 pear/DB/tests/mysql/connect.inc:1.4
--- pear/DB/tests/mysql/connect.inc:1.3 Sun May 12 03:29:25 2002
+++ pear/DB/tests/mysql/connect.inc Wed May 22 06:48:17 2002
@@ -1,7 +1,9 @@
<?php
-require_once "DB.php";
+
+include_once dirname(dirname(dirname(__FILE__)))."/DB.php";
$dbh = DB::connect("mysql://localhost/test");
if (DB::isError($dbh)) {
die("connect.inc: ".$dbh->getMessage());
}
+
?>