mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Changes all usage in Tests of getMock with getMockBuilder.
This commit is contained in:
@@ -20,13 +20,13 @@ class TimestampFirstCombCodecTest 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 TimestampFirstCombCodec($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('ff6f8cb0', 'c57d', '11e1', '9b', '21', '0800200c9a66'));
|
||||
@@ -37,7 +37,7 @@ class TimestampFirstCombCodecTest extends TestCase
|
||||
|
||||
public function testBinaryEncoding()
|
||||
{
|
||||
$uuidMock = $this->getMock('Ramsey\Uuid\UuidInterface');
|
||||
$uuidMock = $this->getMockBuilder('Ramsey\Uuid\UuidInterface')->getMock();
|
||||
$uuidMock->expects($this->any())
|
||||
->method('getFieldsHex')
|
||||
->willReturn(array('ff6f8cb0', 'c57d', '11e1', '9b', '21', '0800200c9a66'));
|
||||
|
||||
Reference in New Issue
Block a user