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

@ -32,7 +32,7 @@ class UserServiceTest extends \PHPUnit_Framework_TestCase
public function setUp()
{
$this->mockUserStore = $this->getMock('PHPCensor\Store\UserStore');
$this->mockUserStore = $this->getMockBuilder('PHPCensor\Store\UserStore')->getMock();
$this->mockUserStore->expects($this->any())
->method('save')
->will($this->returnArgument(0));