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

@ -33,7 +33,7 @@ class BuildServiceTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
$this->mockBuildStore = $this->getMock('PHPCensor\Store\BuildStore');
$this->mockBuildStore = $this->getMockBuilder('PHPCensor\Store\BuildStore')->getMock();
$this->mockBuildStore->expects($this->any())
->method('save')
->will($this->returnArgument(0));
@ -121,7 +121,7 @@ class BuildServiceTest extends \PHPUnit_Framework_TestCase
public function testExecute_DeleteBuild()
{
$store = $this->getMock('PHPCensor\Store\BuildStore');
$store = $this->getMockBuilder('PHPCensor\Store\BuildStore')->getMock();
$store->expects($this->once())
->method('delete')
->will($this->returnValue(true));