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