Skip to content

Commit 434b23d

Browse files
committed
Remove unused local variables in tests
1 parent 8404252 commit 434b23d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/ExpressionLanguageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testWrongCacheImplementation()
9898
$this->expectException('InvalidArgumentException');
9999
$this->expectExceptionMessage('Cache argument has to implement Psr\Cache\CacheItemPoolInterface.');
100100
$cacheMock = $this->getMockBuilder('Psr\Cache\CacheItemSpoolInterface')->getMock();
101-
$expressionLanguage = new ExpressionLanguage($cacheMock);
101+
new ExpressionLanguage($cacheMock);
102102
}
103103

104104
public function testConstantFunction()
@@ -196,7 +196,7 @@ public function testCachingWithDifferentNamesOrder()
196196
$cacheMock = $this->getMockBuilder('Psr\Cache\CacheItemPoolInterface')->getMock();
197197
$cacheItemMock = $this->getMockBuilder('Psr\Cache\CacheItemInterface')->getMock();
198198
$expressionLanguage = new ExpressionLanguage($cacheMock);
199-
$savedParsedExpressions = [];
199+
$savedParsedExpression = null;
200200

201201
$cacheMock
202202
->expects($this->exactly(2))

Tests/ParserCache/ParserCacheAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testSave()
6868
->willReturn($value)
6969
;
7070

71-
$cacheItem = $parserCacheAdapter->save($cacheItemMock);
71+
$parserCacheAdapter->save($cacheItemMock);
7272
}
7373

7474
public function testGetItems()

0 commit comments

Comments
 (0)