Skip to content

Commit

Permalink
forward compat for phpunit 5.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Mar 12, 2017
1 parent 78e6247 commit 8ca8183
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/midcom/core/accountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ public function testNameUnique()

private function getQueryMock()
{
return $this->getMock('midcom_core_query', array('add_constraint', 'execute', 'count', 'count_unchecked'));
return $this->getMockBuilder('midcom_core_query')
->setMethods(array('add_constraint', 'execute', 'count', 'count_unchecked'))
->getMock();
}

public function testAddUsernameConstraint()
Expand Down

0 comments on commit 8ca8183

Please sign in to comment.