Skip to content

Commit

Permalink
minor #1 Upgrade this package to 2020's standards (pamil)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.1.x-dev branch.

Discussion
----------



Commits
-------

9efd51a Upgrade this package to 2020's standards
  • Loading branch information
pamil authored Jan 15, 2020
2 parents 80f7849 + 9efd51a commit ca8796a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 71 deletions.
30 changes: 8 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,18 @@ cache:
- $HOME/.composer/cache/files

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
- 7.3
- 7.4

matrix:
include:
- php: 5.3
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;
env:
- SYMFONY_VERSION=4.4.*
- SYMFONY_VERSION=5.0.*

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:
- vendor/bin/phpspec run -f pretty
Expand Down
45 changes: 3 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`.

[![Build
Status](https://travis-ci.org/Behat/MinkExtension.svg?branch=master)](https://travis-ci.org/Behat/MinkExtension)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Behat/MinkExtension/badges/quality-score.png?s=c6474ca52322f5176a2f0cab10974aeee5e6133c)](https://scrutinizer-ci.com/g/Behat/MinkExtension/)
For the documentation, please [refer to the original repository](https://github.com/Behat/MinkExtension).

MinkExtension is an integration layer between Behat 3.0+ and Mink 1.5+
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)
No updates other than Symfony compatibility will be provided, but this fork _might_ be synchronised with the original repository in the future.
2 changes: 1 addition & 1 deletion behat.yml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
default:
suites:
default:
path: %paths.base%/features
path: "%paths.base%/features"
contexts: [Behat\MinkExtension\Context\MinkContext]
extensions:
Behat\MinkExtension:
Expand Down
16 changes: 10 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "behat/mink-extension",
"name": "friends-of-behat/mink-extension",
"type": "behat-extension",
"description": "Mink extension for Behat",
"keywords": ["web", "test", "browser", "gui"],
Expand All @@ -17,15 +17,19 @@
],

"require": {
"php": ">=5.3.2",
"behat/behat": "^3.0.5",
"behat/mink": "^1.5",
"symfony/config": "^2.7|^3.0|^4.0"
"php": "^7.2",
"behat/behat": "^3.0.5",
"behat/mink": "^1.5",
"symfony/config": "^4.4|^5.0"
},

"require-dev": {
"behat/mink-goutte-driver": "^1.1",
"phpspec/phpspec": "^2.0"
"phpspec/phpspec": "^6.0"
},

"replace": {
"behat/mink-extension": "self.version"
},

"autoload": {
Expand Down

0 comments on commit ca8796a

Please sign in to comment.