File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 13
13
>
14
14
15
15
<php >
16
- <var name =" db_url" value =" mysql://root:@localhost/" />
16
+ <var name =" db_host" value =" localhost" />
17
+ <var name =" db_username" value =" root" />
18
+ <var name =" db_password" value =" " />
19
+ <var name =" db_driver" value =" pdo_mysql" />
17
20
</php >
18
21
19
22
<testsuites >
Original file line number Diff line number Diff line change @@ -177,12 +177,13 @@ public function testInvalidSql() {
177
177
public function testWithCache ()
178
178
{
179
179
global $ db_url ;
180
- $ config = new \Doctrine \DBAL \Configuration ();
181
- // TODO: put this in conf variable
182
180
$ connectionParams = array (
183
- 'url ' => $ db_url ,
181
+ 'user ' => $ GLOBALS ['db_username ' ],
182
+ 'password ' => $ GLOBALS ['db_password ' ],
183
+ 'host ' => $ GLOBALS ['db_host ' ],
184
+ 'driver ' => $ GLOBALS ['db_driver ' ],
184
185
);
185
- $ conn = \Doctrine \DBAL \DriverManager::getConnection ($ connectionParams, $ config );
186
+ $ conn = \Doctrine \DBAL \DriverManager::getConnection ($ connectionParams );
186
187
187
188
$ cache = new ArrayCache ();
188
189
You can’t perform that action at this time.
0 commit comments