From 46920c9c77bcb2b044f67c90d0354d7d60325897 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Wed, 21 Nov 2012 21:49:49 +0100 Subject: [PATCH] [tests] Fix expected exception message on wrong key type. Redis >= 2.8 returns -WRONGTYPE errors instead of -ERR when executing operations on wrong key type (such as trying to LPUSH on a string key). Luckily for us, phpunit's @expectedExceptionMessage annotation actually does not perform an exact match but works on a substring so we just omit the initial part of the exception message to make the test work. --- tests/PHPUnit/ConnectionTestCase.php | 2 +- tests/Predis/ClientTest.php | 4 ++-- tests/Predis/Command/HashDeleteTest.php | 2 +- tests/Predis/Command/HashExistsTest.php | 2 +- tests/Predis/Command/HashGetAllTest.php | 2 +- tests/Predis/Command/HashGetMultipleTest.php | 2 +- tests/Predis/Command/HashGetTest.php | 2 +- tests/Predis/Command/HashIncrementByFloatTest.php | 2 +- tests/Predis/Command/HashIncrementByTest.php | 2 +- tests/Predis/Command/HashKeysTest.php | 2 +- tests/Predis/Command/HashLengthTest.php | 2 +- tests/Predis/Command/HashSetMultipleTest.php | 2 +- tests/Predis/Command/HashSetPreserveTest.php | 2 +- tests/Predis/Command/HashSetTest.php | 2 +- tests/Predis/Command/HashValuesTest.php | 2 +- tests/Predis/Command/KeySortTest.php | 2 +- tests/Predis/Command/ListIndexTest.php | 2 +- tests/Predis/Command/ListInsertTest.php | 2 +- tests/Predis/Command/ListLengthTest.php | 2 +- tests/Predis/Command/ListPopFirstTest.php | 2 +- tests/Predis/Command/ListPopLastPushHeadTest.php | 4 ++-- tests/Predis/Command/ListPopLastTest.php | 2 +- tests/Predis/Command/ListPushHeadTest.php | 2 +- tests/Predis/Command/ListPushHeadXTest.php | 2 +- tests/Predis/Command/ListPushTailTest.php | 2 +- tests/Predis/Command/ListPushTailXTest.php | 2 +- tests/Predis/Command/ListRangeTest.php | 2 +- tests/Predis/Command/ListRemoveTest.php | 2 +- tests/Predis/Command/ListSetTest.php | 2 +- tests/Predis/Command/ListTrimTest.php | 2 +- tests/Predis/Command/SetAddTest.php | 2 +- tests/Predis/Command/SetCardinalityTest.php | 2 +- tests/Predis/Command/SetDifferenceStoreTest.php | 2 +- tests/Predis/Command/SetDifferenceTest.php | 2 +- tests/Predis/Command/SetIntersectionStoreTest.php | 2 +- tests/Predis/Command/SetIntersectionTest.php | 2 +- tests/Predis/Command/SetIsMemberTest.php | 2 +- tests/Predis/Command/SetMembersTest.php | 2 +- tests/Predis/Command/SetMoveTest.php | 4 ++-- tests/Predis/Command/SetPopTest.php | 2 +- tests/Predis/Command/SetRandomMemberTest.php | 2 +- tests/Predis/Command/SetRemoveTest.php | 2 +- tests/Predis/Command/SetUnionStoreTest.php | 2 +- tests/Predis/Command/SetUnionTest.php | 2 +- tests/Predis/Command/StringAppendTest.php | 2 +- tests/Predis/Command/StringBitCountTest.php | 2 +- tests/Predis/Command/StringBitOpTest.php | 2 +- tests/Predis/Command/StringDecrementByTest.php | 2 +- tests/Predis/Command/StringDecrementTest.php | 2 +- tests/Predis/Command/StringGetBitTest.php | 2 +- tests/Predis/Command/StringGetRangeTest.php | 2 +- tests/Predis/Command/StringGetSetTest.php | 2 +- tests/Predis/Command/StringGetTest.php | 2 +- tests/Predis/Command/StringIncrementByFloatTest.php | 2 +- tests/Predis/Command/StringIncrementByTest.php | 2 +- tests/Predis/Command/StringIncrementTest.php | 2 +- tests/Predis/Command/StringSetBitTest.php | 2 +- tests/Predis/Command/StringSetRangeTest.php | 2 +- tests/Predis/Command/StringStrlenTest.php | 2 +- tests/Predis/Command/ZSetAddTest.php | 2 +- tests/Predis/Command/ZSetCardinalityTest.php | 2 +- tests/Predis/Command/ZSetCountTest.php | 2 +- tests/Predis/Command/ZSetIncrementByTest.php | 2 +- tests/Predis/Command/ZSetIntersectionStoreTest.php | 2 +- tests/Predis/Command/ZSetRangeByScoreTest.php | 2 +- tests/Predis/Command/ZSetRangeTest.php | 2 +- tests/Predis/Command/ZSetRankTest.php | 2 +- tests/Predis/Command/ZSetRemoveRangeByRankTest.php | 2 +- tests/Predis/Command/ZSetRemoveRangeByScoreTest.php | 2 +- tests/Predis/Command/ZSetRemoveTest.php | 2 +- tests/Predis/Command/ZSetReverseRangeByScoreTest.php | 2 +- tests/Predis/Command/ZSetReverseRangeTest.php | 2 +- tests/Predis/Command/ZSetReverseRankTest.php | 2 +- tests/Predis/Command/ZSetScoreTest.php | 2 +- tests/Predis/Command/ZSetUnionStoreTest.php | 2 +- 75 files changed, 78 insertions(+), 78 deletions(-) diff --git a/tests/PHPUnit/ConnectionTestCase.php b/tests/PHPUnit/ConnectionTestCase.php index 4f522ea3..fd7c1a31 100644 --- a/tests/PHPUnit/ConnectionTestCase.php +++ b/tests/PHPUnit/ConnectionTestCase.php @@ -262,7 +262,7 @@ abstract class ConnectionTestCase extends StandardTestCase $connection->writeCommand($profile->createCommand('rpush', array('foo', 'baz'))); $this->assertInstanceOf('Predis\ResponseError', $error = $connection->read()); - $this->assertSame('ERR Operation against a key holding the wrong kind of value', $error->getMessage()); + $this->assertRegExp('/[ERR|WRONGTYPE] Operation against a key holding the wrong kind of value/', $error->getMessage()); } /** diff --git a/tests/Predis/ClientTest.php b/tests/Predis/ClientTest.php index d318691a..0ef87bb4 100644 --- a/tests/Predis/ClientTest.php +++ b/tests/Predis/ClientTest.php @@ -313,7 +313,7 @@ class ClientTest extends StandardTestCase /** * @group disconnected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testExecuteCommandThrowsExceptionOnRedisError() { @@ -376,7 +376,7 @@ class ClientTest extends StandardTestCase /** * @group disconnected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testCallingRedisCommandThrowsExceptionOnServerError() { diff --git a/tests/Predis/Command/HashDeleteTest.php b/tests/Predis/Command/HashDeleteTest.php index 2aa50267..64460e48 100644 --- a/tests/Predis/Command/HashDeleteTest.php +++ b/tests/Predis/Command/HashDeleteTest.php @@ -102,7 +102,7 @@ class HashDeleteTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashExistsTest.php b/tests/Predis/Command/HashExistsTest.php index 8a105ee5..ac4ffb3d 100644 --- a/tests/Predis/Command/HashExistsTest.php +++ b/tests/Predis/Command/HashExistsTest.php @@ -91,7 +91,7 @@ class HashExistsTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashGetAllTest.php b/tests/Predis/Command/HashGetAllTest.php index acace878..ec0d2d1c 100644 --- a/tests/Predis/Command/HashGetAllTest.php +++ b/tests/Predis/Command/HashGetAllTest.php @@ -92,7 +92,7 @@ class HashGetAllTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashGetMultipleTest.php b/tests/Predis/Command/HashGetMultipleTest.php index c4b65d96..8aec4995 100644 --- a/tests/Predis/Command/HashGetMultipleTest.php +++ b/tests/Predis/Command/HashGetMultipleTest.php @@ -108,7 +108,7 @@ class HashGetMultipleTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashGetTest.php b/tests/Predis/Command/HashGetTest.php index 86db161a..c159fe69 100644 --- a/tests/Predis/Command/HashGetTest.php +++ b/tests/Predis/Command/HashGetTest.php @@ -88,7 +88,7 @@ class HashGetTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashIncrementByFloatTest.php b/tests/Predis/Command/HashIncrementByFloatTest.php index e7ad26ee..eb3944ae 100644 --- a/tests/Predis/Command/HashIncrementByFloatTest.php +++ b/tests/Predis/Command/HashIncrementByFloatTest.php @@ -113,7 +113,7 @@ class HashIncrementByFloatTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashIncrementByTest.php b/tests/Predis/Command/HashIncrementByTest.php index feec9023..33ebfaf6 100644 --- a/tests/Predis/Command/HashIncrementByTest.php +++ b/tests/Predis/Command/HashIncrementByTest.php @@ -113,7 +113,7 @@ class HashIncrementByTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashKeysTest.php b/tests/Predis/Command/HashKeysTest.php index b99dd6d8..f998564d 100644 --- a/tests/Predis/Command/HashKeysTest.php +++ b/tests/Predis/Command/HashKeysTest.php @@ -92,7 +92,7 @@ class HashKeysTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashLengthTest.php b/tests/Predis/Command/HashLengthTest.php index 622f9270..97fd0319 100644 --- a/tests/Predis/Command/HashLengthTest.php +++ b/tests/Predis/Command/HashLengthTest.php @@ -87,7 +87,7 @@ class HashLengthTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashSetMultipleTest.php b/tests/Predis/Command/HashSetMultipleTest.php index f638cc40..a6376490 100644 --- a/tests/Predis/Command/HashSetMultipleTest.php +++ b/tests/Predis/Command/HashSetMultipleTest.php @@ -114,7 +114,7 @@ class HashSetMultipleTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashSetPreserveTest.php b/tests/Predis/Command/HashSetPreserveTest.php index 8e38e973..c589d533 100644 --- a/tests/Predis/Command/HashSetPreserveTest.php +++ b/tests/Predis/Command/HashSetPreserveTest.php @@ -91,7 +91,7 @@ class HashSetPreserveTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashSetTest.php b/tests/Predis/Command/HashSetTest.php index a817493a..8d25bbfa 100644 --- a/tests/Predis/Command/HashSetTest.php +++ b/tests/Predis/Command/HashSetTest.php @@ -90,7 +90,7 @@ class HashSetTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/HashValuesTest.php b/tests/Predis/Command/HashValuesTest.php index 627a0ddb..55389138 100644 --- a/tests/Predis/Command/HashValuesTest.php +++ b/tests/Predis/Command/HashValuesTest.php @@ -92,7 +92,7 @@ class HashValuesTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/KeySortTest.php b/tests/Predis/Command/KeySortTest.php index 1dba4769..07ff466d 100644 --- a/tests/Predis/Command/KeySortTest.php +++ b/tests/Predis/Command/KeySortTest.php @@ -258,7 +258,7 @@ class KeySortTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListIndexTest.php b/tests/Predis/Command/ListIndexTest.php index ab369521..8383eb8a 100644 --- a/tests/Predis/Command/ListIndexTest.php +++ b/tests/Predis/Command/ListIndexTest.php @@ -103,7 +103,7 @@ class ListIndexTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListInsertTest.php b/tests/Predis/Command/ListInsertTest.php index f7eb4395..31578b90 100644 --- a/tests/Predis/Command/ListInsertTest.php +++ b/tests/Predis/Command/ListInsertTest.php @@ -111,7 +111,7 @@ class ListInsertTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListLengthTest.php b/tests/Predis/Command/ListLengthTest.php index bc34cf58..2e2a0384 100644 --- a/tests/Predis/Command/ListLengthTest.php +++ b/tests/Predis/Command/ListLengthTest.php @@ -98,7 +98,7 @@ class ListLengthTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListPopFirstTest.php b/tests/Predis/Command/ListPopFirstTest.php index 08a40533..4e148c8a 100644 --- a/tests/Predis/Command/ListPopFirstTest.php +++ b/tests/Predis/Command/ListPopFirstTest.php @@ -98,7 +98,7 @@ class ListPopFirstTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListPopLastPushHeadTest.php b/tests/Predis/Command/ListPopLastPushHeadTest.php index ee2b7371..3b5dd929 100644 --- a/tests/Predis/Command/ListPopLastPushHeadTest.php +++ b/tests/Predis/Command/ListPopLastPushHeadTest.php @@ -117,7 +117,7 @@ class ListPopLastPushHeadTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() { @@ -130,7 +130,7 @@ class ListPopLastPushHeadTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfDestinationKey() { diff --git a/tests/Predis/Command/ListPopLastTest.php b/tests/Predis/Command/ListPopLastTest.php index 2a41605a..0655d8de 100644 --- a/tests/Predis/Command/ListPopLastTest.php +++ b/tests/Predis/Command/ListPopLastTest.php @@ -98,7 +98,7 @@ class ListPopLastTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListPushHeadTest.php b/tests/Predis/Command/ListPushHeadTest.php index 2b2762aa..af5a37e9 100644 --- a/tests/Predis/Command/ListPushHeadTest.php +++ b/tests/Predis/Command/ListPushHeadTest.php @@ -101,7 +101,7 @@ class ListPushHeadTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListPushHeadXTest.php b/tests/Predis/Command/ListPushHeadXTest.php index c35e5056..73ae6a18 100644 --- a/tests/Predis/Command/ListPushHeadXTest.php +++ b/tests/Predis/Command/ListPushHeadXTest.php @@ -99,7 +99,7 @@ class ListPushHeadXTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListPushTailTest.php b/tests/Predis/Command/ListPushTailTest.php index c4bcd133..4460b237 100644 --- a/tests/Predis/Command/ListPushTailTest.php +++ b/tests/Predis/Command/ListPushTailTest.php @@ -101,7 +101,7 @@ class ListPushTailTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListPushTailXTest.php b/tests/Predis/Command/ListPushTailXTest.php index ffa826d6..48f2e573 100644 --- a/tests/Predis/Command/ListPushTailXTest.php +++ b/tests/Predis/Command/ListPushTailXTest.php @@ -99,7 +99,7 @@ class ListPushTailXTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListRangeTest.php b/tests/Predis/Command/ListRangeTest.php index c28d2000..654cfc49 100644 --- a/tests/Predis/Command/ListRangeTest.php +++ b/tests/Predis/Command/ListRangeTest.php @@ -142,7 +142,7 @@ class ListRangeTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListRemoveTest.php b/tests/Predis/Command/ListRemoveTest.php index 98634ba7..ae0adf2a 100644 --- a/tests/Predis/Command/ListRemoveTest.php +++ b/tests/Predis/Command/ListRemoveTest.php @@ -126,7 +126,7 @@ class ListRemoveTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListSetTest.php b/tests/Predis/Command/ListSetTest.php index 09e5e224..bddc6be1 100644 --- a/tests/Predis/Command/ListSetTest.php +++ b/tests/Predis/Command/ListSetTest.php @@ -100,7 +100,7 @@ class ListSetTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ListTrimTest.php b/tests/Predis/Command/ListTrimTest.php index 742e48fb..7970c7f2 100644 --- a/tests/Predis/Command/ListTrimTest.php +++ b/tests/Predis/Command/ListTrimTest.php @@ -132,7 +132,7 @@ class ListTrimTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetAddTest.php b/tests/Predis/Command/SetAddTest.php index 1adeb3ce..0b709aac 100644 --- a/tests/Predis/Command/SetAddTest.php +++ b/tests/Predis/Command/SetAddTest.php @@ -100,7 +100,7 @@ class SetAddTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetCardinalityTest.php b/tests/Predis/Command/SetCardinalityTest.php index e5801e6a..4112d623 100644 --- a/tests/Predis/Command/SetCardinalityTest.php +++ b/tests/Predis/Command/SetCardinalityTest.php @@ -96,7 +96,7 @@ class SetCardinalityTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetDifferenceStoreTest.php b/tests/Predis/Command/SetDifferenceStoreTest.php index e93329f2..abcde008 100644 --- a/tests/Predis/Command/SetDifferenceStoreTest.php +++ b/tests/Predis/Command/SetDifferenceStoreTest.php @@ -119,7 +119,7 @@ class SetDifferenceStoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() { diff --git a/tests/Predis/Command/SetDifferenceTest.php b/tests/Predis/Command/SetDifferenceTest.php index 85fa096d..d6f90af1 100644 --- a/tests/Predis/Command/SetDifferenceTest.php +++ b/tests/Predis/Command/SetDifferenceTest.php @@ -121,7 +121,7 @@ class SetDifferenceTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetIntersectionStoreTest.php b/tests/Predis/Command/SetIntersectionStoreTest.php index 97c8dbfe..4af3c378 100644 --- a/tests/Predis/Command/SetIntersectionStoreTest.php +++ b/tests/Predis/Command/SetIntersectionStoreTest.php @@ -132,7 +132,7 @@ class SetIntersectionStoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() { diff --git a/tests/Predis/Command/SetIntersectionTest.php b/tests/Predis/Command/SetIntersectionTest.php index 0c022458..2a22b330 100644 --- a/tests/Predis/Command/SetIntersectionTest.php +++ b/tests/Predis/Command/SetIntersectionTest.php @@ -132,7 +132,7 @@ class SetIntersectionTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetIsMemberTest.php b/tests/Predis/Command/SetIsMemberTest.php index b7c1c95a..35ef65a5 100644 --- a/tests/Predis/Command/SetIsMemberTest.php +++ b/tests/Predis/Command/SetIsMemberTest.php @@ -100,7 +100,7 @@ class SetIsMemberTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetMembersTest.php b/tests/Predis/Command/SetMembersTest.php index 300d3f7d..588ea84f 100644 --- a/tests/Predis/Command/SetMembersTest.php +++ b/tests/Predis/Command/SetMembersTest.php @@ -92,7 +92,7 @@ class SetMembersTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetMoveTest.php b/tests/Predis/Command/SetMoveTest.php index 5dea2347..325ee7f0 100644 --- a/tests/Predis/Command/SetMoveTest.php +++ b/tests/Predis/Command/SetMoveTest.php @@ -93,7 +93,7 @@ class SetMoveTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() { @@ -107,7 +107,7 @@ class SetMoveTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfDestinationKey() { diff --git a/tests/Predis/Command/SetPopTest.php b/tests/Predis/Command/SetPopTest.php index 1fdca365..0dfd75bb 100644 --- a/tests/Predis/Command/SetPopTest.php +++ b/tests/Predis/Command/SetPopTest.php @@ -89,7 +89,7 @@ class SetPopTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetRandomMemberTest.php b/tests/Predis/Command/SetRandomMemberTest.php index 74e8189c..2316691b 100644 --- a/tests/Predis/Command/SetRandomMemberTest.php +++ b/tests/Predis/Command/SetRandomMemberTest.php @@ -97,7 +97,7 @@ class SetRandomMemberTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetRemoveTest.php b/tests/Predis/Command/SetRemoveTest.php index 1e41f751..2366a71d 100644 --- a/tests/Predis/Command/SetRemoveTest.php +++ b/tests/Predis/Command/SetRemoveTest.php @@ -104,7 +104,7 @@ class SetRemoveTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/SetUnionStoreTest.php b/tests/Predis/Command/SetUnionStoreTest.php index c348385f..f107336d 100644 --- a/tests/Predis/Command/SetUnionStoreTest.php +++ b/tests/Predis/Command/SetUnionStoreTest.php @@ -119,7 +119,7 @@ class SetUnionStoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongTypeOfSourceKey() { diff --git a/tests/Predis/Command/SetUnionTest.php b/tests/Predis/Command/SetUnionTest.php index 85c845c9..25a3d7c0 100644 --- a/tests/Predis/Command/SetUnionTest.php +++ b/tests/Predis/Command/SetUnionTest.php @@ -121,7 +121,7 @@ class SetUnionTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringAppendTest.php b/tests/Predis/Command/StringAppendTest.php index f3d2a04b..98e49174 100644 --- a/tests/Predis/Command/StringAppendTest.php +++ b/tests/Predis/Command/StringAppendTest.php @@ -99,7 +99,7 @@ class StringAppendTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringBitCountTest.php b/tests/Predis/Command/StringBitCountTest.php index 0454e14d..17ed0ad3 100644 --- a/tests/Predis/Command/StringBitCountTest.php +++ b/tests/Predis/Command/StringBitCountTest.php @@ -96,7 +96,7 @@ class StringBitCountTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringBitOpTest.php b/tests/Predis/Command/StringBitOpTest.php index 93de7a7c..4a760dbd 100644 --- a/tests/Predis/Command/StringBitOpTest.php +++ b/tests/Predis/Command/StringBitOpTest.php @@ -168,7 +168,7 @@ class StringBitOpTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnInvalidSourceKey() { diff --git a/tests/Predis/Command/StringDecrementByTest.php b/tests/Predis/Command/StringDecrementByTest.php index 2f1848d4..6cca378d 100644 --- a/tests/Predis/Command/StringDecrementByTest.php +++ b/tests/Predis/Command/StringDecrementByTest.php @@ -124,7 +124,7 @@ class StringDecrementByTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringDecrementTest.php b/tests/Predis/Command/StringDecrementTest.php index 576ef974..57426e63 100644 --- a/tests/Predis/Command/StringDecrementTest.php +++ b/tests/Predis/Command/StringDecrementTest.php @@ -111,7 +111,7 @@ class StringDecrementTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringGetBitTest.php b/tests/Predis/Command/StringGetBitTest.php index 09b18707..38a274c6 100644 --- a/tests/Predis/Command/StringGetBitTest.php +++ b/tests/Predis/Command/StringGetBitTest.php @@ -117,7 +117,7 @@ class StringGetBitTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringGetRangeTest.php b/tests/Predis/Command/StringGetRangeTest.php index 0f404861..c208c7e4 100644 --- a/tests/Predis/Command/StringGetRangeTest.php +++ b/tests/Predis/Command/StringGetRangeTest.php @@ -102,7 +102,7 @@ class StringGetRangeTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringGetSetTest.php b/tests/Predis/Command/StringGetSetTest.php index 45a0d026..ac182ce8 100644 --- a/tests/Predis/Command/StringGetSetTest.php +++ b/tests/Predis/Command/StringGetSetTest.php @@ -88,7 +88,7 @@ class StringGetSetTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringGetTest.php b/tests/Predis/Command/StringGetTest.php index 0c3c92d1..92a9c390 100644 --- a/tests/Predis/Command/StringGetTest.php +++ b/tests/Predis/Command/StringGetTest.php @@ -109,7 +109,7 @@ class StringGetTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringIncrementByFloatTest.php b/tests/Predis/Command/StringIncrementByFloatTest.php index 84461de8..4c597594 100644 --- a/tests/Predis/Command/StringIncrementByFloatTest.php +++ b/tests/Predis/Command/StringIncrementByFloatTest.php @@ -124,7 +124,7 @@ class StringIncrementByFloatTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringIncrementByTest.php b/tests/Predis/Command/StringIncrementByTest.php index 8e89480e..b346d708 100644 --- a/tests/Predis/Command/StringIncrementByTest.php +++ b/tests/Predis/Command/StringIncrementByTest.php @@ -124,7 +124,7 @@ class StringIncrementByTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringIncrementTest.php b/tests/Predis/Command/StringIncrementTest.php index d2f24220..4a60dccb 100644 --- a/tests/Predis/Command/StringIncrementTest.php +++ b/tests/Predis/Command/StringIncrementTest.php @@ -98,7 +98,7 @@ class StringIncrementTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringSetBitTest.php b/tests/Predis/Command/StringSetBitTest.php index 49388c0a..a8fc4bbb 100644 --- a/tests/Predis/Command/StringSetBitTest.php +++ b/tests/Predis/Command/StringSetBitTest.php @@ -133,7 +133,7 @@ class StringSetBitTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringSetRangeTest.php b/tests/Predis/Command/StringSetRangeTest.php index 4113a679..3cf0188f 100644 --- a/tests/Predis/Command/StringSetRangeTest.php +++ b/tests/Predis/Command/StringSetRangeTest.php @@ -127,7 +127,7 @@ class StringSetRangeTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/StringStrlenTest.php b/tests/Predis/Command/StringStrlenTest.php index 539e5660..3a9780f8 100644 --- a/tests/Predis/Command/StringStrlenTest.php +++ b/tests/Predis/Command/StringStrlenTest.php @@ -98,7 +98,7 @@ class StringStrlenTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetAddTest.php b/tests/Predis/Command/ZSetAddTest.php index 4f531c73..83056dd9 100644 --- a/tests/Predis/Command/ZSetAddTest.php +++ b/tests/Predis/Command/ZSetAddTest.php @@ -113,7 +113,7 @@ class ZSetAddTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetCardinalityTest.php b/tests/Predis/Command/ZSetCardinalityTest.php index cc5548a8..d8530b5d 100644 --- a/tests/Predis/Command/ZSetCardinalityTest.php +++ b/tests/Predis/Command/ZSetCardinalityTest.php @@ -87,7 +87,7 @@ class ZSetCardinalityTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetCountTest.php b/tests/Predis/Command/ZSetCountTest.php index d2e21be1..7dda70bb 100644 --- a/tests/Predis/Command/ZSetCountTest.php +++ b/tests/Predis/Command/ZSetCountTest.php @@ -120,7 +120,7 @@ class ZSetCountTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetIncrementByTest.php b/tests/Predis/Command/ZSetIncrementByTest.php index 6939ccc6..96ddecc2 100644 --- a/tests/Predis/Command/ZSetIncrementByTest.php +++ b/tests/Predis/Command/ZSetIncrementByTest.php @@ -87,7 +87,7 @@ class ZSetIncrementByTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetIntersectionStoreTest.php b/tests/Predis/Command/ZSetIntersectionStoreTest.php index 833a7ca5..2fa7f5f6 100644 --- a/tests/Predis/Command/ZSetIntersectionStoreTest.php +++ b/tests/Predis/Command/ZSetIntersectionStoreTest.php @@ -181,7 +181,7 @@ class ZSetIntersectionStoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetRangeByScoreTest.php b/tests/Predis/Command/ZSetRangeByScoreTest.php index 09872268..f951640a 100644 --- a/tests/Predis/Command/ZSetRangeByScoreTest.php +++ b/tests/Predis/Command/ZSetRangeByScoreTest.php @@ -218,7 +218,7 @@ class ZSetRangeByScoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetRangeTest.php b/tests/Predis/Command/ZSetRangeTest.php index 129f5739..7e0b1e6e 100644 --- a/tests/Predis/Command/ZSetRangeTest.php +++ b/tests/Predis/Command/ZSetRangeTest.php @@ -141,7 +141,7 @@ class ZSetRangeTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetRankTest.php b/tests/Predis/Command/ZSetRankTest.php index 6da64801..18ddb6ee 100644 --- a/tests/Predis/Command/ZSetRankTest.php +++ b/tests/Predis/Command/ZSetRankTest.php @@ -90,7 +90,7 @@ class ZSetRankTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetRemoveRangeByRankTest.php b/tests/Predis/Command/ZSetRemoveRangeByRankTest.php index 882f0561..b62dc278 100644 --- a/tests/Predis/Command/ZSetRemoveRangeByRankTest.php +++ b/tests/Predis/Command/ZSetRemoveRangeByRankTest.php @@ -102,7 +102,7 @@ class ZSetRemoveRangeByRankTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php b/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php index 77cdc60e..bf549039 100644 --- a/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php +++ b/tests/Predis/Command/ZSetRemoveRangeByScoreTest.php @@ -102,7 +102,7 @@ class ZSetRemoveRangeByScoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetRemoveTest.php b/tests/Predis/Command/ZSetRemoveTest.php index 8ba3d02c..4f93ee58 100644 --- a/tests/Predis/Command/ZSetRemoveTest.php +++ b/tests/Predis/Command/ZSetRemoveTest.php @@ -89,7 +89,7 @@ class ZSetRemoveTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetReverseRangeByScoreTest.php b/tests/Predis/Command/ZSetReverseRangeByScoreTest.php index 4abd3668..4282ef18 100644 --- a/tests/Predis/Command/ZSetReverseRangeByScoreTest.php +++ b/tests/Predis/Command/ZSetReverseRangeByScoreTest.php @@ -218,7 +218,7 @@ class ZSetReverseRangeByScoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetReverseRangeTest.php b/tests/Predis/Command/ZSetReverseRangeTest.php index c354f679..a123f076 100644 --- a/tests/Predis/Command/ZSetReverseRangeTest.php +++ b/tests/Predis/Command/ZSetReverseRangeTest.php @@ -141,7 +141,7 @@ class ZSetReverseRangeTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetReverseRankTest.php b/tests/Predis/Command/ZSetReverseRankTest.php index ffbc4a75..6df08423 100644 --- a/tests/Predis/Command/ZSetReverseRankTest.php +++ b/tests/Predis/Command/ZSetReverseRankTest.php @@ -90,7 +90,7 @@ class ZSetReverseRankTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetScoreTest.php b/tests/Predis/Command/ZSetScoreTest.php index 778f8d38..fb7f89da 100644 --- a/tests/Predis/Command/ZSetScoreTest.php +++ b/tests/Predis/Command/ZSetScoreTest.php @@ -90,7 +90,7 @@ class ZSetScoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() { diff --git a/tests/Predis/Command/ZSetUnionStoreTest.php b/tests/Predis/Command/ZSetUnionStoreTest.php index 2a6d8811..d109ed95 100644 --- a/tests/Predis/Command/ZSetUnionStoreTest.php +++ b/tests/Predis/Command/ZSetUnionStoreTest.php @@ -198,7 +198,7 @@ class ZSetUnionStoreTest extends CommandTestCase /** * @group connected * @expectedException Predis\ServerException - * @expectedExceptionMessage ERR Operation against a key holding the wrong kind of value + * @expectedExceptionMessage Operation against a key holding the wrong kind of value */ public function testThrowsExceptionOnWrongType() {