mirror of
https://github.com/predis/predis.git
synced 2026-10-09 05:16:32 +00:00
Fix tests.
This commit is contained in:
@@ -79,11 +79,12 @@ class StringBitCountTest extends PredisCommandTestCase
|
||||
|
||||
/**
|
||||
* @group connected
|
||||
* @expectedException \Predis\Response\ServerException
|
||||
* @expectedExceptionMessage Operation against a key holding the wrong kind of value
|
||||
*/
|
||||
public function testThrowsExceptionOnWrongType()
|
||||
{
|
||||
$this->expectException('Predis\Response\ServerException');
|
||||
$this->expectExceptionMessage('Operation against a key holding the wrong kind of value');
|
||||
|
||||
$redis = $this->getClient();
|
||||
|
||||
$redis->lpush('key', 'list');
|
||||
|
||||
Reference in New Issue
Block a user