Skip to content

Commit 80c2c1c

Browse files
committed
removed usage of $that
1 parent f409d56 commit 80c2c1c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/Command/CacheClearCommand/CacheClearCommandTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ public function testCacheIsFreshAfterCacheClearedWithWarmup()
5757
// simply check that cache is warmed up
5858
$this->assertGreaterThanOrEqual(1, count($metaFiles));
5959
$configCacheFactory = new ConfigCacheFactory(true);
60-
$that = $this;
6160

6261
foreach ($metaFiles as $file) {
63-
$configCacheFactory->cache(substr($file, 0, -5), function () use ($that, $file) {
64-
$that->fail(sprintf('Meta file "%s" is not fresh', (string) $file));
62+
$configCacheFactory->cache(substr($file, 0, -5), function () use ($file) {
63+
$this->fail(sprintf('Meta file "%s" is not fresh', (string) $file));
6564
});
6665
}
6766

0 commit comments

Comments
 (0)