@@ -198,16 +198,21 @@ public function testClear() {
198198 * @return void
199199 */
200200 public function testGroupsReadWrite () {
201- Cache::config ('wincache_groups ' , array ('engine ' => 'Wincache ' , 'duration ' => 0 , 'groups ' => array ('group_a ' , 'group_b ' )));
201+ Cache::config ('wincache_groups ' , array (
202+ 'engine ' => 'Wincache ' ,
203+ 'duration ' => 0 ,
204+ 'groups ' => array ('group_a ' , 'group_b ' ),
205+ 'prefix ' => 'test_ '
206+ ));
202207 $ this ->assertTrue (Cache::write ('test_groups ' , 'value ' , 'wincache_groups ' ));
203208 $ this ->assertEquals ('value ' , Cache::read ('test_groups ' , 'wincache_groups ' ));
204209
205- wincache_ucache_inc ('group_a ' );
210+ wincache_ucache_inc ('test_group_a ' );
206211 $ this ->assertFalse (Cache::read ('test_groups ' , 'wincache_groups ' ));
207212 $ this ->assertTrue (Cache::write ('test_groups ' , 'value2 ' , 'wincache_groups ' ));
208213 $ this ->assertEquals ('value2 ' , Cache::read ('test_groups ' , 'wincache_groups ' ));
209214
210- wincache_ucache_inc ('group_b ' );
215+ wincache_ucache_inc ('test_group_b ' );
211216 $ this ->assertFalse (Cache::read ('test_groups ' , 'wincache_groups ' ));
212217 $ this ->assertTrue (Cache::write ('test_groups ' , 'value3 ' , 'wincache_groups ' ));
213218 $ this ->assertEquals ('value3 ' , Cache::read ('test_groups ' , 'wincache_groups ' ));
@@ -219,7 +224,12 @@ public function testGroupsReadWrite() {
219224 * @return void
220225 */
221226 public function testGroupDelete () {
222- Cache::config ('wincache_groups ' , array ('engine ' => 'Wincache ' , 'duration ' => 0 , 'groups ' => array ('group_a ' , 'group_b ' )));
227+ Cache::config ('wincache_groups ' , array (
228+ 'engine ' => 'Wincache ' ,
229+ 'duration ' => 0 ,
230+ 'groups ' => array ('group_a ' , 'group_b ' ),
231+ 'prefix ' => 'test_ '
232+ ));
223233 $ this ->assertTrue (Cache::write ('test_groups ' , 'value ' , 'wincache_groups ' ));
224234 $ this ->assertEquals ('value ' , Cache::read ('test_groups ' , 'wincache_groups ' ));
225235 $ this ->assertTrue (Cache::delete ('test_groups ' , 'wincache_groups ' ));
@@ -233,7 +243,12 @@ public function testGroupDelete() {
233243 * @return void
234244 **/
235245 public function testGroupClear () {
236- Cache::config ('wincache_groups ' , array ('engine ' => 'Wincache ' , 'duration ' => 0 , 'groups ' => array ('group_a ' , 'group_b ' )));
246+ Cache::config ('wincache_groups ' , array (
247+ 'engine ' => 'Wincache ' ,
248+ 'duration ' => 0 ,
249+ 'groups ' => array ('group_a ' , 'group_b ' ),
250+ 'prefix ' => 'test_ '
251+ ));
237252
238253 $ this ->assertTrue (Cache::write ('test_groups ' , 'value ' , 'wincache_groups ' ));
239254 $ this ->assertTrue (Cache::clearGroup ('group_a ' , 'wincache_groups ' ));
0 commit comments