mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
API Update to use PHPUnit 7, bump minimum PHP version to 7.1
This commit is contained in:
parent
125039dc5c
commit
f5d52aeae8
14
.travis.yml
14
.travis.yml
@ -9,27 +9,19 @@ cache:
|
|||||||
- $HOME/.composer/cache/files
|
- $HOME/.composer/cache/files
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.6
|
- 7.1
|
||||||
|
- 7.2
|
||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- PHPUNIT_TEST=1
|
- PHPUNIT_TEST=1
|
||||||
- PHPCS_TEST=1
|
- PHPCS_TEST=1
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- php: 5.6
|
|
||||||
env: PHPUNIT_TEST=1
|
|
||||||
- php: 7.0
|
|
||||||
env: PHPUNIT_TEST=1
|
|
||||||
- php: 7.1.2
|
|
||||||
env: PHPUNIT_TEST=1
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- export PATH=~/.composer/vendor/bin:$PATH
|
- export PATH=~/.composer/vendor/bin:$PATH
|
||||||
- composer validate
|
- composer validate
|
||||||
- composer install --dev --prefer-dist
|
- composer install --dev --prefer-dist
|
||||||
- composer require --prefer-dist --no-update silverstripe/recipe-core:1.0.x-dev
|
- composer require --prefer-dist --no-update silverstripe/recipe-core:2.x-dev
|
||||||
- composer update
|
- composer update
|
||||||
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
|
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.6",
|
"php": ">=7.1",
|
||||||
"phpunit/phpunit": "^5.7",
|
"phpunit/phpunit": "^7@dev",
|
||||||
"behat/behat": "^3.2",
|
"behat/behat": "^3.2",
|
||||||
"behat/mink": "^1.7",
|
"behat/mink": "^1.7",
|
||||||
"behat/mink-extension": "^2.1",
|
"behat/mink-extension": "^2.1",
|
||||||
|
@ -8,10 +8,11 @@ use Behat\Mink\Session;
|
|||||||
use Behat\Mink\Mink;
|
use Behat\Mink\Mink;
|
||||||
use Behat\Mink\Driver\DriverInterface;
|
use Behat\Mink\Driver\DriverInterface;
|
||||||
use Behat\Mink\Element\Element;
|
use Behat\Mink\Element\Element;
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
use SilverStripe\BehatExtension\Tests\SilverStripeContextTest\FeatureContext;
|
use SilverStripe\BehatExtension\Tests\SilverStripeContextTest\FeatureContext;
|
||||||
use SilverStripe\Dev\SapphireTest;
|
use SilverStripe\Dev\SapphireTest;
|
||||||
|
|
||||||
class SilverStripeContextTest extends \PHPUnit_Framework_TestCase
|
class SilverStripeContextTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $backupGlobals = false;
|
protected $backupGlobals = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user