Skip to content

Commit

Permalink
Upgrade to PHP 8.1 (#6)
Browse files Browse the repository at this point in the history
* Set up Codeception

* Ported tests from mindplay/testies to Codeception 5. Also adjusted tests breaking on PHP 7.4+

* Updated composer.lock

* Changed travis versions to 8.0 and 8.1

* Removed legacy flag from composer command. Changed PHP requirements in composer.json to >=8.0 and removed phpbrowser package

* Removing composer.lock to avoid locking symfony packages at php >=8.1
  • Loading branch information
vortrixs authored Aug 24, 2022
1 parent 34d1ead commit f9705ca
Show file tree
Hide file tree
Showing 23 changed files with 1,059 additions and 1,090 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/vendor
/.idea
/tests/_output
/composer.lock
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
language: php

php:
- 7.1
- 7.2
- 7.3
- 8.0
- 8.1

before_script:
- 'composer install --dev --prefer-source'
- 'composer install --prefer-source'

script: php test/test.php
script: vendor/bin/codecept run
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ application is a CLI script handling many requests, you will need to manually ca
on the logger instance at the end of a successful request, since otherwise log-entries will
accumulate across requests.

Notice: PHP 7.4 introduced a new [ini setting](https://www.php.net/manual/en/ini.core.php#ini.zend.exception-ignore-args) (`zend.exception_ignore_args`) for excluding arguments from stack traces.
If you want arguments to be passed on to Sentry you will need to turn this setting off.

#### Configuration

A few of the extensions support optional constructor arguments to configure some optional features.
Expand Down
12 changes: 12 additions & 0 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace: Tests
support_namespace: Support
paths:
tests: tests
output: tests/_output
data: tests/Support/Data
support: tests/Support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
13 changes: 9 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
}
],
"require": {
"php": ">=7.1",
"php": ">=8.0",
"ext-json": "*",
"psr/http-message": "^1.0",
"psr/log": "^1.0"
"psr/log": "^1.0",
"codeception/codeception": "^5.0",
"codeception/module-asserts": "*"
},
"require-dev": {
"mindplay/testies": "^0.3.2",
"nyholm/psr7": "^1.0"
},
"autoload": {
Expand All @@ -25,7 +27,10 @@
},
"autoload-dev": {
"psr-4": {
"\\": "test/"
"Tests\\Support\\": "tests/Support",
"Tests\\Mocks\\": "tests/Mocks",
"Tests\\Fixtures\\": "tests/Fixtures",
"Tests\\Unit\\": "tests/Unit"
}
}
}
325 changes: 0 additions & 325 deletions composer.lock

This file was deleted.

Loading

0 comments on commit f9705ca

Please sign in to comment.