Changes all usage in Tests of getMock with getMockBuilder.

This commit is contained in:
Ben Peachey
2017-10-17 12:46:25 +02:00
parent 0ef23d1b10
commit dbb9a8b6d1
13 changed files with 49 additions and 49 deletions
+3 -3
View File
@@ -20,13 +20,13 @@ class TimestampLastCombCodecTest extends TestCase
protected function setUp()
{
$this->builderMock = $this->getMock('Ramsey\Uuid\Builder\UuidBuilderInterface');
$this->builderMock = $this->getMockBuilder('Ramsey\Uuid\Builder\UuidBuilderInterface')->getMock();
$this->codec = new TimestampLastCombCodec($this->builderMock);
}
public function testEncoding()
{
$uuidMock = $this->getMock('Ramsey\Uuid\UuidInterface');
$uuidMock = $this->getMockBuilder('Ramsey\Uuid\UuidInterface')->getMock();
$uuidMock->expects($this->any())
->method('getFieldsHex')
->willReturn(array('0800200c', '9a66', '11e1', '9b', '21', 'ff6f8cb0c57d'));
@@ -37,7 +37,7 @@ class TimestampLastCombCodecTest extends TestCase
public function testBinaryEncoding()
{
$uuidMock = $this->getMock('Ramsey\Uuid\UuidInterface');
$uuidMock = $this->getMockBuilder('Ramsey\Uuid\UuidInterface')->getMock();
$uuidMock->expects($this->any())
->method('getHex')
->willReturn('0800200c9a6611e19b21ff6f8cb0c57d');