Skip to content

Commit

Permalink
skip tests if Memcached is not found (#20018)
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored and taylorotwell committed Jul 12, 2017
1 parent 8598534 commit 3f42376
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Integration/Cache/CacheLockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ class CacheLockTest extends TestCase
{
use InteractsWithRedis;

public function setup()
{
parent::setUp();

if (! class_exists(Memcached::class)) {
$this->markTestSkipped('Memcached module not installed');
}
}

public function test_memcached_locks_can_be_acquired_and_released()
{
Cache::store('memcached')->lock('foo')->release();
Expand Down

0 comments on commit 3f42376

Please sign in to comment.