Improve compatability with phpunit 8

This commit is contained in:
Dan Hensby 2020-03-26 10:59:23 +00:00
parent 2a19212e17
commit dae94f0f9a
No known key found for this signature in database
GPG Key ID: F76D6B5FE0626A99

View File

@ -8,6 +8,7 @@ use Behat\Mink\Session;
use Behat\Mink\Mink;
use Behat\Mink\Driver\DriverInterface;
use Behat\Mink\Element\Element;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use SilverStripe\BehatExtension\Tests\SilverStripeContextTest\FeatureContext;
use SilverStripe\Dev\SapphireTest;
@ -17,7 +18,7 @@ class SilverStripeContextTest extends TestCase
protected $backupGlobals = false;
public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
// Bootstrap test environment
parent::setUpBeforeClass();
@ -100,7 +101,7 @@ class SilverStripeContextTest extends TestCase
}
/**
* @return Element|\PHPUnit_Framework_MockObject_MockObject
* @return Element|MockObject
*/
protected function getElementMock()
{