cvs: pearweb /tests/pear_rest setup.php.inc
| From: | Daniel O'Connor | Date: | Mon, 18 May 2009 15:11:43 +0000 |
| Subject: | cvs: pearweb /tests/pear_rest setup.php.inc | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8420@lists.php.net to get a copy of this message | ||
clockwerx Mon May 18 15:11:43 2009 UTC
Modified files:
/pearweb/tests/pear_rest setup.php.inc
Log:
Bug #16236 - Pass in
http://cvs.php.net/viewvc.cgi/pearweb/tests/pear_rest/setup.php.inc?r1=1.6&r2=1.7&diff_format=u
Index: pearweb/tests/pear_rest/setup.php.inc
diff -u pearweb/tests/pear_rest/setup.php.inc:1.6 pearweb/tests/pear_rest/setup.php.inc:1.7
--- pearweb/tests/pear_rest/setup.php.inc:1.6 Tue Mar 25 02:56:40 2008
+++ pearweb/tests/pear_rest/setup.php.inc Mon May 18 15:11:43 2009
@@ -2,13 +2,15 @@
require dirname(dirname(__FILE__)) . '/mockDB/DB.php';
set_include_path(dirname(dirname(dirname(__FILE__))) . '/include' . PATH_SEPARATOR .
get_include_path());
+
require_once 'DB.php';
$_ENV['PEAR_DATABASE_DSN'] = 'mock://pear:pear@localhost/pear';
// so we do local
$_SERVER['SERVER_NAME'] = 'localhost';
+
require_once 'pear-prepend.php';
require_once 'pear-rest.php';
-$pear_rest = new pearweb_Channel_REST_Generator($restdir = dirname(__FILE__) . DIRECTORY_SEPARATOR
. 'rest');
+$pear_rest = new pearweb_Channel_REST_Generator($restdir = dirname(__FILE__) . DIRECTORY_SEPARATOR
. 'rest', $dbh);
$options = array(
'persistent' => false,
@@ -21,4 +23,4 @@
$phpt = new PEAR_PHPTest;
require_once 'pear-rest.php';
-$rest = new pearweb_Channel_REST_Generator($rdir = dirname(__FILE__) . '/rest');
\ No newline at end of file
+$rest = new pearweb_Channel_REST_Generator($rdir = dirname(__FILE__) . '/rest', $dbh);