Avoid deprecated PHPUnit APIs

This commit is contained in:
Daniel Hensby 2017-03-24 15:00:41 +13:00
parent 187fd50a27
commit 55fd4a81af
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -64,8 +64,8 @@ class SilverStripeContextTest extends \PHPUnit_Framework_TestCase
->getMock();
$sessionMock = $this->getMockBuilder('Behat\Mink\Session')
->setConstructorArgs(array(
$this->getMock('Behat\Mink\Driver\DriverInterface'),
$this->getMock('Behat\Mink\Selector\SelectorsHandler')
$this->getMockBuilder('Behat\Mink\Driver\DriverInterface')->getMock(),
$this->getMockBuilder('Behat\Mink\Selector\SelectorsHandler')->getMock()
))
->setMethods(array('getPage'))
->getMock();