From 56cc4e6c598628b6dc98abe4e52981b6b16bd669 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Wed, 29 Jan 2025 21:27:58 +0000 Subject: [PATCH] test throws \RedisException, so expect that, not Warning --- tests/Stash/Test/Driver/RedisTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Stash/Test/Driver/RedisTest.php b/tests/Stash/Test/Driver/RedisTest.php index c60649ce..aff7152a 100644 --- a/tests/Stash/Test/Driver/RedisTest.php +++ b/tests/Stash/Test/Driver/RedisTest.php @@ -67,7 +67,7 @@ protected function getInvalidOptions() public function testBadDisconnect() { - $this->expectException('Warning'); + $this->expectException("RedisException"); if (defined('HHVM_VERSION')) { $this->markTestSkipped('This test can not run on HHVM as HHVM throws a different set of errors.'); }