mirror of
https://github.com/predis/predis.git
synced 2026-10-09 05:16:32 +00:00
Fix tests.
This commit is contained in:
@@ -25,7 +25,7 @@ class RequestSerializerTest extends PredisTestCase
|
||||
{
|
||||
$serializer = new RequestSerializer();
|
||||
|
||||
$command = $this->getMock('Predis\Command\CommandInterface');
|
||||
$command = $this->getMockBuilder('Predis\Command\CommandInterface')->getMock();
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getId')
|
||||
@@ -47,7 +47,7 @@ class RequestSerializerTest extends PredisTestCase
|
||||
{
|
||||
$serializer = new RequestSerializer();
|
||||
|
||||
$command = $this->getMock('Predis\Command\CommandInterface');
|
||||
$command = $this->getMockBuilder('Predis\Command\CommandInterface')->getMock();
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getId')
|
||||
@@ -69,7 +69,7 @@ class RequestSerializerTest extends PredisTestCase
|
||||
{
|
||||
$serializer = new RequestSerializer();
|
||||
|
||||
$command = $this->getMock('Predis\Command\CommandInterface');
|
||||
$command = $this->getMockBuilder('Predis\Command\CommandInterface')->getMock();
|
||||
|
||||
$command->expects($this->once())
|
||||
->method('getId')
|
||||
|
||||
Reference in New Issue
Block a user