Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support codeception v4 #39

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

before_script:
- composer update -n --prefer-dist --dev
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ Codeception extension to start and stop PHP built-in web server for your tests.
| **Codeception 2.0** | **1.2.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.2.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 2.1, 2.2** | **1.3.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.3.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 2.3** | **1.4.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.4.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 3.0** | **master** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=master)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 3.0** | **1.5.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.5.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 1.5.x branch does not exist yet. It needs to be created.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but somehow 1.5.0 tag exists since september of 2019

| **Codeception 4.0** | **master** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=master)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |

## Minimum requirements

* Codeception 3.0
* PHP 5.6
* Codeception 4.x
* PHP >= 7.2
* PHPUnit >= 6.0

## Installation

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
}
],
"require": {
"php": ">=5.6.0",
"codeception/codeception": "^3.0"
"php": ">=7.2.0",
"codeception/codeception": "^4.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since you never changed any code I presume that it is compatible with codeception 3.0, so ^3.0.0 | ^4.0.0 would be good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"codeception/codeception": "^4.0"
"codeception/codeception": "^3.0 || ^4.0"

I think this decision is up to @tiger-seo cause it's mainly about the support commitment. It seems to currently work with both versions but this may increase maintenance costs or require another major release later. Added it as a suggestion so that tiger-seo can decide to apply or not before merging.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, if they break compatibility, then according to SEMVER they have to bump major, but since major is locked from version 3.x.x to 4.x.x then it should not be a problem

},
"require-dev": {
"phpunit/phpunit": "5.*"
"phpunit/phpunit": "6.*",
"codeception/module-phpbrowser": "^1.0"
},
"autoload": {
"psr-0": {
Expand Down
Loading