@@ -37,14 +37,14 @@ protected function setUp(): void
3737
3838 // Initialize path
3939 $ this ->config = new Cache ();
40- $ this ->config ->storePath .= self ::$ directory ;
40+ $ this ->config ->file [ ' storePath ' ] .= self ::$ directory ;
4141 }
4242
4343 protected function tearDown (): void
4444 {
45- if (is_dir ($ this ->config ->storePath )) {
46- chmod ($ this ->config ->storePath , 0777 );
47- rmdir ($ this ->config ->storePath );
45+ if (is_dir ($ this ->config ->file [ ' storePath ' ] )) {
46+ chmod ($ this ->config ->file [ ' storePath ' ] , 0777 );
47+ rmdir ($ this ->config ->file [ ' storePath ' ] );
4848 }
4949 }
5050
@@ -75,8 +75,8 @@ public function testGetHandlerExceptionCacheHandlerNotFound(): void
7575
7676 public function testGetDummyHandler (): void
7777 {
78- if (! is_dir ($ this ->config ->storePath )) {
79- mkdir ($ this ->config ->storePath , 0555 , true );
78+ if (! is_dir ($ this ->config ->file [ ' storePath ' ] )) {
79+ mkdir ($ this ->config ->file [ ' storePath ' ] , 0555 , true );
8080 }
8181
8282 $ this ->config ->handler = 'dummy ' ;
@@ -85,13 +85,13 @@ public function testGetDummyHandler(): void
8585
8686 // Initialize path
8787 $ this ->config = new Cache ();
88- $ this ->config ->storePath .= self ::$ directory ;
88+ $ this ->config ->file [ ' storePath ' ] .= self ::$ directory ;
8989 }
9090
9191 public function testHandlesBadHandler (): void
9292 {
93- if (! is_dir ($ this ->config ->storePath )) {
94- mkdir ($ this ->config ->storePath , 0555 , true );
93+ if (! is_dir ($ this ->config ->file [ ' storePath ' ] )) {
94+ mkdir ($ this ->config ->file [ ' storePath ' ] , 0555 , true );
9595 }
9696
9797 $ this ->config ->handler = 'dummy ' ;
@@ -104,6 +104,6 @@ public function testHandlesBadHandler(): void
104104
105105 // Initialize path
106106 $ this ->config = new Cache ();
107- $ this ->config ->storePath .= self ::$ directory ;
107+ $ this ->config ->file [ ' storePath ' ] .= self ::$ directory ;
108108 }
109109}
0 commit comments