mirror of
https://github.com/predis/predis.git
synced 2026-08-28 11:09:49 +00:00
Fix and reword some exception messages.
This commit is contained in:
@@ -65,7 +65,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
|
||||
/**
|
||||
* @group disconnected
|
||||
* @expectedException RuntimeException
|
||||
* @expectedExceptionMessage Replication needs a master and at least one slave
|
||||
* @expectedExceptionMessage Replication needs one master and at least one slave.
|
||||
*/
|
||||
public function testThrowsExceptionOnEmptyReplication()
|
||||
{
|
||||
@@ -76,7 +76,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
|
||||
/**
|
||||
* @group disconnected
|
||||
* @expectedException RuntimeException
|
||||
* @expectedExceptionMessage Replication needs a master and at least one slave
|
||||
* @expectedExceptionMessage Replication needs one master and at least one slave.
|
||||
*/
|
||||
public function testThrowsExceptionOnMissingMaster()
|
||||
{
|
||||
@@ -89,7 +89,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
|
||||
/**
|
||||
* @group disconnected
|
||||
* @expectedException RuntimeException
|
||||
* @expectedExceptionMessage Replication needs a master and at least one slave
|
||||
* @expectedExceptionMessage Replication needs one master and at least one slave.
|
||||
*/
|
||||
public function testThrowsExceptionOnMissingSlave()
|
||||
{
|
||||
@@ -200,7 +200,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
|
||||
/**
|
||||
* @group disconnected
|
||||
* @expectedException InvalidArgumentException
|
||||
* @expectedExceptionMessage The specified connection is not valid
|
||||
* @expectedExceptionMessage Invalid connection or connection not found.
|
||||
*/
|
||||
public function testThrowsErrorWhenSwitchingToUnknownConnection()
|
||||
{
|
||||
@@ -435,7 +435,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
|
||||
/**
|
||||
* @group disconnected
|
||||
* @expectedException Predis\NotSupportedException
|
||||
* @expectedExceptionMessage The command INFO is not allowed in replication mode
|
||||
* @expectedExceptionMessage The command 'INFO' is not allowed in replication mode.
|
||||
*/
|
||||
public function testThrowsExceptionOnNonSupportedCommand()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user