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

@ -112,7 +112,10 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase
*/
protected function getProjectMock($prevBuildId = null, $setProject = true) {
$project = $this->getMock('PHPCensor\Model\Project', ['getLatestBuild']);
$project = $this
->getMockBuilder('PHPCensor\Model\Project')
->setMethods(['getLatestBuild'])
->getMock();
$prevBuild = ($prevBuildId) ? $this->getBuild($prevBuildId, false) : null;