File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/Symfony/Cmf/Component/Testing/Functional Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,21 @@ abstract class BaseTestCase extends WebTestCase
18
18
protected $ db ;
19
19
20
20
protected $ dbManagers = array ();
21
- protected $ settings = array ();
22
21
protected $ containers = array ();
23
22
24
23
/**
25
- * Configure the testcase .
24
+ * Return the configuration to use when creating the Kernel .
26
25
*
27
- * Currently, this is only used for creating a new kernel. This accepts
28
- * 2 settings:
26
+ * The following settings are used:
29
27
*
30
28
* * environment - The environment to use (defaults to 'phpcr')
31
29
* * debug - If debug should be enabled/disabled (defaults to true)
32
30
*
33
- * @param array $options
31
+ * @return array
34
32
*/
35
- protected function configure ( array $ options )
33
+ protected function getKernelConfiguration ( )
36
34
{
37
- $ this -> settings = $ options ;
35
+ return array () ;
38
36
}
39
37
40
38
/**
@@ -47,7 +45,7 @@ public function getContainer()
47
45
$ hash = md5 (serialize ($ this ->settings ));
48
46
49
47
if (!isset ($ this ->containers [$ hash ])) {
50
- $ client = $ this ->createClient ($ this ->settings );
48
+ $ client = $ this ->createClient ($ this ->getKernelConfiguration () );
51
49
$ this ->containers [$ hash ] = $ client ->getContainer ();
52
50
}
53
51
You can’t perform that action at this time.
0 commit comments