Upgrade this package to 2020's standards
This commit is contained in:
30
.travis.yml
30
.travis.yml
@@ -7,32 +7,18 @@ cache:
|
|||||||
- $HOME/.composer/cache/files
|
- $HOME/.composer/cache/files
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.4
|
|
||||||
- 5.5
|
|
||||||
- 5.6
|
|
||||||
- 7.0
|
|
||||||
- 7.1
|
|
||||||
- 7.2
|
- 7.2
|
||||||
- hhvm
|
- 7.3
|
||||||
|
- 7.4
|
||||||
|
|
||||||
matrix:
|
env:
|
||||||
include:
|
- SYMFONY_VERSION=4.4.*
|
||||||
- php: 5.3
|
- SYMFONY_VERSION=5.0.*
|
||||||
dist: precise
|
|
||||||
- php: 7.2
|
|
||||||
env: SYMFONY_VERSION='^2'
|
|
||||||
- php: 7.2
|
|
||||||
env: SYMFONY_VERSION='^3'
|
|
||||||
# Test against dev dependencies
|
|
||||||
- php: 7.2
|
|
||||||
env: DEPS=dev
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/lts=$SYMFONY_VERSION; fi;
|
|
||||||
- if [ "$DEPS" = 'dev' ]; then composer config minimum-stability dev; fi;
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- composer install --no-progress
|
- if [ "$SYMFONY_VERSION" = "5.0.*" ]; then composer require behat/behat:dev-master --no-update --no-scripts --prefer-dist; fi
|
||||||
|
- composer require symfony/config:${SYMFONY_VERSION} --no-update --no-scripts --prefer-dist
|
||||||
|
- composer update --no-progress
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpspec run -f pretty
|
- vendor/bin/phpspec run -f pretty
|
||||||
|
|||||||
45
README.md
45
README.md
@@ -1,44 +1,5 @@
|
|||||||
# MinkExtension
|
This is the fork of MinkExtension library that supports PHP `^7.2` and supports Symfony `^4.4` and `^5.0`.
|
||||||
|
|
||||||
[.
|
||||||
Status](https://travis-ci.org/Behat/MinkExtension.svg?branch=master)](https://travis-ci.org/Behat/MinkExtension)
|
|
||||||
[](https://scrutinizer-ci.com/g/Behat/MinkExtension/)
|
|
||||||
|
|
||||||
MinkExtension is an integration layer between Behat 3.0+ and Mink 1.5+
|
No updates other than Symfony compatibility will be provided, but this fork _might_ be synchronised with the original repository in the future.
|
||||||
and it provides:
|
|
||||||
|
|
||||||
* Additional services for Behat (``Mink``, ``Sessions``, ``Drivers``).
|
|
||||||
* ``Behat\MinkExtension\Context\MinkAwareContext`` which provides ``Mink``
|
|
||||||
instance for your contexts.
|
|
||||||
* Base ``Behat\MinkExtension\Context\MinkContext`` context which provides base
|
|
||||||
step definitions and hooks for your contexts or subcontexts. Or it could be
|
|
||||||
even used as context on its own.
|
|
||||||
|
|
||||||
## Docs
|
|
||||||
|
|
||||||
[Official documentation](doc/index.rst).
|
|
||||||
|
|
||||||
## Translated languages
|
|
||||||
|
|
||||||
For now exist 11 translated languages: `cs`,`de`,`es`,`fr`,`ja`,`nl`,`pl`,`pt`,`ro`,`ru`,`sv`.
|
|
||||||
|
|
||||||
**Note:** The `ja`,`nl` and `sv` are outdated.
|
|
||||||
|
|
||||||
#### How to add a new translated language?
|
|
||||||
|
|
||||||
If you want to translate another language, you can use as reference the `ru` language file under
|
|
||||||
[translations folder](https://github.com/Behat/MinkExtension/tree/master/i18n).
|
|
||||||
|
|
||||||
**Important:** The filename must match with the same translated language name in [Behat](https://github.com/Behat/Behat/blob/master/i18n.php) and [Gherkin](https://github.com/Behat/Gherkin/blob/master/i18n.php) in order to work correctly.
|
|
||||||
|
|
||||||
If the language does not exist in [Gherkin](https://github.com/Behat/Gherkin/blob/master/i18n.php).
|
|
||||||
You should consider [contributing to Gherkin translations](https://github.com/Behat/Gherkin/blob/master/CONTRIBUTING.md#contributing-to-gherkin-translations).
|
|
||||||
|
|
||||||
## Copyright
|
|
||||||
|
|
||||||
Copyright (c) 2012 Konstantin Kudryashov (ever.zet). See LICENSE for details.
|
|
||||||
|
|
||||||
## Contributors
|
|
||||||
|
|
||||||
* Konstantin Kudryashov [everzet](http://github.com/everzet) [lead developer]
|
|
||||||
* Other [awesome developers](https://github.com/Behat/MinkExtension/graphs/contributors)
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
default:
|
default:
|
||||||
suites:
|
suites:
|
||||||
default:
|
default:
|
||||||
path: %paths.base%/features
|
path: "%paths.base%/features"
|
||||||
contexts: [Behat\MinkExtension\Context\MinkContext]
|
contexts: [Behat\MinkExtension\Context\MinkContext]
|
||||||
extensions:
|
extensions:
|
||||||
Behat\MinkExtension:
|
Behat\MinkExtension:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "behat/mink-extension",
|
"name": "friends-of-behat/mink-extension",
|
||||||
"type": "behat-extension",
|
"type": "behat-extension",
|
||||||
"description": "Mink extension for Behat",
|
"description": "Mink extension for Behat",
|
||||||
"keywords": ["web", "test", "browser", "gui"],
|
"keywords": ["web", "test", "browser", "gui"],
|
||||||
@@ -17,15 +17,19 @@
|
|||||||
],
|
],
|
||||||
|
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.2",
|
"php": "^7.2",
|
||||||
"behat/behat": "^3.0.5",
|
"behat/behat": "^3.0.5",
|
||||||
"behat/mink": "^1.5",
|
"behat/mink": "^1.5",
|
||||||
"symfony/config": "^2.7|^3.0|^4.0"
|
"symfony/config": "^4.4|^5.0"
|
||||||
},
|
},
|
||||||
|
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"behat/mink-goutte-driver": "^1.1",
|
"behat/mink-goutte-driver": "^1.1",
|
||||||
"phpspec/phpspec": "^2.0"
|
"phpspec/phpspec": "^6.0"
|
||||||
|
},
|
||||||
|
|
||||||
|
"replace": {
|
||||||
|
"behat/mink-extension": "self.version"
|
||||||
},
|
},
|
||||||
|
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|||||||
Reference in New Issue
Block a user