File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -146,15 +146,12 @@ public function testGetListWithoutCache()
146
146
->setMethods (['refreshPublicSuffixList ' ])
147
147
->getMock ();
148
148
149
- $ dataDir = $ this ->dataDir ;
150
- $ cacheDir = $ this ->cacheDir ;
151
-
152
149
$ listManager ->expects ($ this ->once ())
153
150
->method ('refreshPublicSuffixList ' )
154
- ->will ($ this ->returnCallback (function () use ( $ dataDir , $ cacheDir ) {
151
+ ->will ($ this ->returnCallback (function () {
155
152
copy (
156
- $ dataDir . '/ ' . PublicSuffixListManager::PDP_PSL_PHP_FILE ,
157
- $ cacheDir . '/ ' . PublicSuffixListManager::PDP_PSL_PHP_FILE
153
+ $ this -> dataDir . '/ ' . PublicSuffixListManager::PDP_PSL_PHP_FILE ,
154
+ $ this -> cacheDir . '/ ' . PublicSuffixListManager::PDP_PSL_PHP_FILE
158
155
);
159
156
}));
160
157
You can’t perform that action at this time.
0 commit comments