Fixed tests for PHPUnit 5.7

This commit is contained in:
Dmitry Khomutov 2017-01-09 23:23:29 +07:00
commit 4d380a4aa4
8 changed files with 46 additions and 61 deletions

View file

@ -168,13 +168,10 @@ class FactoryTest extends \PHPUnit_Framework_TestCase {
$this->testedFactory->registerResource(
function () use ($self) {
return $self->getMock(
'PHPCensor\Builder',
[],
[],
'',
false
);
return $self
->getMockBuilder('PHPCensor\Builder')
->disableOriginalConstructor()
->getMock();
},
null,
'PHPCensor\\Builder'
@ -182,13 +179,10 @@ class FactoryTest extends \PHPUnit_Framework_TestCase {
$this->testedFactory->registerResource(
function () use ($self) {
return $self->getMock(
'PHPCensor\Model\Build',
[],
[],
'',
false
);
return $self
->getMockBuilder('PHPCensor\Model\Build')
->disableOriginalConstructor()
->getMock();
},
null,
'PHPCensor\\Model\\Build'