File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ protected function compute(): void
37
37
[
38
38
$ this ->magicSql ,
39
39
$ this ->magicSqlCount ,
40
- $ this ->columnDescList
40
+ $ this ->columnDescList ,
41
+ $ this ->magicSqlSubQuery
41
42
] = $ this ->cache ->fetch ($ key );
42
43
return ;
43
44
}
@@ -79,6 +80,7 @@ protected function compute(): void
79
80
$ this ->magicSql ,
80
81
$ this ->magicSqlCount ,
81
82
$ this ->columnDescList ,
83
+ $ this ->magicSqlSubQuery
82
84
]);
83
85
}
84
86
}
Original file line number Diff line number Diff line change @@ -70,12 +70,14 @@ abstract class TDBMAbstractServiceTest extends TestCase
70
70
/**
71
71
* @var ArrayCache
72
72
*/
73
- private $ cache ;
73
+ private static $ cache ;
74
74
75
75
public static function setUpBeforeClass (): void
76
76
{
77
77
self ::resetConnection ();
78
78
79
+ self ::$ cache = new ArrayCache ();
80
+
79
81
$ dbConnection = ConnectionFactory::resetDatabase (
80
82
$ GLOBALS ['db_driver ' ],
81
83
$ GLOBALS ['db_host ' ] ?? null ,
@@ -134,10 +136,7 @@ protected function getDummyGeneratorListener() : DummyGeneratorListener
134
136
135
137
protected function getCache (): ArrayCache
136
138
{
137
- if ($ this ->cache === null ) {
138
- $ this ->cache = new ArrayCache ();
139
- }
140
- return $ this ->cache ;
139
+ return self ::$ cache ;
141
140
}
142
141
143
142
protected function getConfiguration () : ConfigurationInterface
You can’t perform that action at this time.
0 commit comments