diff --git a/tests/AsyncRedisQueueTest.php b/tests/AsyncRedisQueueTest.php index a7973fd..da3b257 100644 --- a/tests/AsyncRedisQueueTest.php +++ b/tests/AsyncRedisQueueTest.php @@ -138,6 +138,10 @@ class AsyncRedisQueueTest extends TestCase public function test_clear_job() { + if (! method_exists($this->queue, 'clear')) { + $this->markTestSkipped('The Queue has no clear() method to test.'); + } + $job1 = new RedisQueueIntegrationTestJob(30); $job2 = new RedisQueueIntegrationTestJob(40);