Skip to content

Improved support for Codeception 5/PHP 8 #159

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

Merged
merged 1 commit into from
May 30, 2022
Merged
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
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ jobs:
strategy:
matrix:
php: [8.0, 8.1]
symfony: ["4.4.*", "5.4.*", "6.0.*"]
symfony: ["4.4.*", "5.4.*", "6.0.*", "6.1.*"]
exclude:
- php: 8.0
symfony: "6.1.*"

steps:
- name: Checkout code
Expand Down Expand Up @@ -47,6 +50,14 @@ jobs:
path: framework-tests
ref: "6.0"

- name: Checkout Symfony 6.1 Sample
if: "matrix.symfony == '6.1.*' && matrix.php == '8.1'"
uses: actions/checkout@v2
with:
repository: Codeception/symfony-module-tests
path: framework-tests
ref: "6.1"

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
Expand Down
18 changes: 11 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "codeception/module-symfony",
"description": "Codeception module for Symfony framework",
"keywords": ["codeception", "symfony"],
"homepage": "https://codeception.com/",
"type": "library",
"license": "MIT",
"type": "library",
"keywords": [
"codeception",
"symfony"
],
"authors": [
{
"name": "Michael Bodnarchuk"
Expand All @@ -14,12 +16,12 @@
"homepage": "https://medium.com/@ganieves"
}
],
"minimum-stability": "dev",
"homepage": "https://codeception.com/",
"require": {
"php": "^8.0",
"ext-json": "*",
"codeception/lib-innerbrowser": "^3.1.1",
"codeception/codeception": "^5.0.0-RC3"
"codeception/codeception": "^5.0.0-RC3",
"codeception/lib-innerbrowser": "^3.1.1"
},
"require-dev": {
"codeception/module-asserts": "^3.0",
Expand All @@ -38,10 +40,12 @@
"codeception/module-asserts": "Include traditional PHPUnit assertions in your tests",
"symfony/web-profiler-bundle": "Tool that gives information about the execution of requests"
},
"minimum-stability": "RC",
"autoload": {
"classmap": ["src/"]
},
"config": {
"classmap-authoritative": true
"classmap-authoritative": true,
"sort-packages": true
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A Codeception module for Symfony framework.

## Requirements

* `Symfony 4.4` or higher.
* `Symfony` `4.4.x`, `5.4.x`, `6.x` or higher, as per the [Symfony supported versions](https://symfony.com/releases).
* `PHP 8.0` or higher.

## Installation
Expand Down
3 changes: 3 additions & 0 deletions src/Codeception/Module/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ class Symfony extends Framework implements DoctrineProvider, PartedModule
*/
public ?AbstractBrowser $client = null;

/**
* @var array<string, mixed>
*/
public array $config = [
'app_path' => 'app',
'kernel_class' => 'App\Kernel',
Expand Down