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

Upgrade to Codeception 5 and PHP 8.1 #50

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 8.1

before_script:
- composer update -n --prefer-dist --dev
Expand Down
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ PhpBuiltinServer [![Latest Stable](https://poser.pugx.org/codeception/phpbuiltin

Codeception extension to start and stop PHP built-in web server for your tests.

| Codeception Branch | PhpBuiltinServer Branch | Status |
| ------- | -------- | -------- |
| **Codeception 1.x** | **1.1.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.1.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **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, 4.0** | **master** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=master)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| Codeception Branch | PhpBuiltinServer Branch | Status |
|--------------------------|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Codeception 1.x** | **1.1.x** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=v1.1.x)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **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, 4.0** | **codeception_3_4** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=master)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |
| **Codeception 5.0** | **master** | [![Build Status](https://secure.travis-ci.org/tiger-seo/PhpBuiltinServer.png?branch=codeception_5)](http://travis-ci.org/tiger-seo/PhpBuiltinServer) |

## Minimum requirements

* Codeception 3.0
* PHP 5.6
* Codeception 5.0
* PHP 8.1

## Installation

Expand All @@ -29,8 +30,8 @@ Codeception extension to start and stop PHP built-in web server for your tests.

``` yaml
paths:
output: _output
tests: .
log: _log
data: _data
helpers: _helpers
extensions:
Expand All @@ -43,14 +44,15 @@ extensions:
autostart: true
documentRoot: tests/_data
startDelay: 1
phpIni: /etc/php5/apache2/php.ini
phpIni: /etc/php8/apache2/php.ini
logDir: _log
```

### example for projects based on Symfony
``` yaml
paths:
output: _output
tests: .
log: _log
data: _data
helpers: _helpers
extensions:
Expand All @@ -66,4 +68,5 @@ extensions:
directoryIndex: app.php
startDelay: 1
phpIni: /etc/php5/apache2/php.ini
logDir: _log
```
4 changes: 3 additions & 1 deletion codeception.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
paths:
tests: tests
log: tests/log
output: tests/_output
data: tests/data
support: tests/support
actor_suffix: Tester
settings:
suite_class: \PHPUnit_Framework_TestSuite
colors: true
Expand All @@ -21,3 +22,4 @@ extensions:
port: 8000
documentRoot: tests/data
startDelay: 1
logDir: log
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@
}
],
"require": {
"php": ">=5.6.0",
"codeception/codeception": "^3.0 || ^4.0"
"php": ">=8.1.0",
"codeception/codeception": "^5.0"
},
"require-dev": {
"phpunit/phpunit": "5.*"
"phpunit/phpunit": "10.*",
"codeception/module-phpbrowser": "^3.0"
},
"autoload": {
"psr-0": {
"Codeception": "src"
}
},
"config": {
"bin-dir": "bin"
"bin-dir": "bin",
"platform": {
"php": "8.1.0"
}
}
}
Loading