Skip to content

Commit 4e8ae3a

Browse files
committed
Replace local vars with instance vars
1 parent 92d745d commit 4e8ae3a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/PublicSuffixListManagerTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,12 @@ public function testGetListWithoutCache()
146146
->setMethods(['refreshPublicSuffixList'])
147147
->getMock();
148148

149-
$dataDir = $this->dataDir;
150-
$cacheDir = $this->cacheDir;
151-
152149
$listManager->expects($this->once())
153150
->method('refreshPublicSuffixList')
154-
->will($this->returnCallback(function () use ($dataDir, $cacheDir) {
151+
->will($this->returnCallback(function () {
155152
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
158155
);
159156
}));
160157

0 commit comments

Comments
 (0)