Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Serban Ghita <[email protected]>
  • Loading branch information
serbanghita committed Dec 9, 2024
1 parent 010bebd commit b555b54
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/MobileDetectWithCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ public function testCustomCacheWithInvalidFnThrowsException()
$detect->isMobile();
}

/**
* @throws MobileDetectException
*/
public function testCustomCacheForConsecutiveCalls()
{
$cache = new Cache();
Expand All @@ -143,6 +146,9 @@ public function testCustomCacheForConsecutiveCalls()
$this->assertCount(1, $cache->getKeys());
}

/**
* @throws MobileDetectException
*/
public function testGetCacheKeyIsUsedInConsecutiveCallsIfFoundIn()
{
$cache = $this->getMockBuilder(Cache::class)
Expand All @@ -151,12 +157,9 @@ public function testGetCacheKeyIsUsedInConsecutiveCallsIfFoundIn()
$cache->method('get')->withAnyParameters()->willReturn(new CacheItem('name', 'value'));
$cache->method('set')->withAnyParameters()->willReturn(true);


$cache->expects($spy = $this->exactly(2))->method('get');
$cache->expects($spy = $this->never())->method('set');



$detect = new MobileDetect($cache);
$detect->setUserAgent('iPad; AppleWebKit/533.17.9 Version/5.0.2 Mobile/8C148 Safari/6533.18.5');

Expand Down

0 comments on commit b555b54

Please sign in to comment.