Fixed tests for PHPUnit 5.7
This commit is contained in:
parent
8fd81ce5aa
commit
4d380a4aa4
8 changed files with 46 additions and 61 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue