mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Merge pull request #191 from dhensby/pulls/5/phpunit-8
Bump min-php and phpunit versions
This commit is contained in:
commit
2a73afce20
@ -9,8 +9,9 @@ cache:
|
||||
- $HOME/.composer/cache/files
|
||||
|
||||
php:
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
- 7.4
|
||||
|
||||
env:
|
||||
matrix:
|
||||
@ -20,9 +21,8 @@ env:
|
||||
before_script:
|
||||
- export PATH=~/.composer/vendor/bin:$PATH
|
||||
- composer validate
|
||||
- composer install --dev --prefer-dist
|
||||
- composer require --prefer-dist --no-update silverstripe/recipe-core:2.x-dev
|
||||
- composer update
|
||||
- composer require --prefer-dist --no-update silverstripe/recipe-core:5.x-dev
|
||||
- composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
|
||||
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
|
||||
- phpenv rehash
|
||||
|
||||
|
@ -21,8 +21,8 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.1",
|
||||
"phpunit/phpunit": "^7@dev",
|
||||
"php": "^7.2",
|
||||
"phpunit/phpunit": "^7 || ^8",
|
||||
"behat/behat": "^3.2",
|
||||
"behat/mink": "^1.7",
|
||||
"behat/mink-extension": "^2.1",
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user