File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11
11
syntaxCheck =" false"
12
12
bootstrap =" tests/bootstrap.php"
13
13
>
14
+
15
+ <php >
16
+ <var name =" db_url" value =" mysql://root:@localhost/" />
17
+ </php >
18
+
14
19
<testsuites >
15
20
<testsuite name =" Mouf Test Suite" >
16
21
<directory >./tests/</directory >
Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ class SqlTwigEnvironmentFactoryTest extends \PHPUnit_Framework_TestCase
11
11
{
12
12
public function getTwigWithConnection ()
13
13
{
14
+ global $ db_url ;
14
15
$ config = new \Doctrine \DBAL \Configuration ();
15
16
// TODO: put this in conf variable
16
17
$ connectionParams = array (
17
- 'url ' => ' mysql://root:@localhost/ ' ,
18
+ 'url ' => $ db_url ,
18
19
);
19
20
$ conn = \Doctrine \DBAL \DriverManager::getConnection ($ connectionParams , $ config );
20
21
Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ public function testStandardSelect()
40
40
}
41
41
42
42
public function testWithCache () {
43
+ global $ db_url ;
43
44
$ config = new \Doctrine \DBAL \Configuration ();
44
45
// TODO: put this in conf variable
45
46
$ connectionParams = array (
46
- 'url ' => ' mysql://root:@localhost/ ' ,
47
+ 'url ' => $ db_url ,
47
48
);
48
49
$ conn = \Doctrine \DBAL \DriverManager::getConnection ($ connectionParams , $ config );
49
50
You can’t perform that action at this time.
0 commit comments