Skip to content

Commit e2a0f4d

Browse files
Improved support for Codeception 5/PHP 8 (#159)
Co-authored-by: Dan Barrett <[email protected]>
1 parent 83eb810 commit e2a0f4d

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

.github/workflows/main.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ jobs:
99
strategy:
1010
matrix:
1111
php: [8.0, 8.1]
12-
symfony: ["4.4.*", "5.4.*", "6.0.*"]
12+
symfony: ["4.4.*", "5.4.*", "6.0.*", "6.1.*"]
13+
exclude:
14+
- php: 8.0
15+
symfony: "6.1.*"
1316

1417
steps:
1518
- name: Checkout code
@@ -47,6 +50,14 @@ jobs:
4750
path: framework-tests
4851
ref: "6.0"
4952

53+
- name: Checkout Symfony 6.1 Sample
54+
if: "matrix.symfony == '6.1.*' && matrix.php == '8.1'"
55+
uses: actions/checkout@v2
56+
with:
57+
repository: Codeception/symfony-module-tests
58+
path: framework-tests
59+
ref: "6.1"
60+
5061
- name: Get composer cache directory
5162
id: composer-cache
5263
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

composer.json

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "codeception/module-symfony",
33
"description": "Codeception module for Symfony framework",
4-
"keywords": ["codeception", "symfony"],
5-
"homepage": "https://codeception.com/",
6-
"type": "library",
74
"license": "MIT",
5+
"type": "library",
6+
"keywords": [
7+
"codeception",
8+
"symfony"
9+
],
810
"authors": [
911
{
1012
"name": "Michael Bodnarchuk"
@@ -14,12 +16,12 @@
1416
"homepage": "https://medium.com/@ganieves"
1517
}
1618
],
17-
"minimum-stability": "dev",
19+
"homepage": "https://codeception.com/",
1820
"require": {
1921
"php": "^8.0",
2022
"ext-json": "*",
21-
"codeception/lib-innerbrowser": "^3.1.1",
22-
"codeception/codeception": "^5.0.0-RC3"
23+
"codeception/codeception": "^5.0.0-RC3",
24+
"codeception/lib-innerbrowser": "^3.1.1"
2325
},
2426
"require-dev": {
2527
"codeception/module-asserts": "^3.0",
@@ -38,10 +40,12 @@
3840
"codeception/module-asserts": "Include traditional PHPUnit assertions in your tests",
3941
"symfony/web-profiler-bundle": "Tool that gives information about the execution of requests"
4042
},
43+
"minimum-stability": "RC",
4144
"autoload": {
4245
"classmap": ["src/"]
4346
},
4447
"config": {
45-
"classmap-authoritative": true
48+
"classmap-authoritative": true,
49+
"sort-packages": true
4650
}
4751
}

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A Codeception module for Symfony framework.
99

1010
## Requirements
1111

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

1515
## Installation

src/Codeception/Module/Symfony.php

+3
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ class Symfony extends Framework implements DoctrineProvider, PartedModule
154154
*/
155155
public ?AbstractBrowser $client = null;
156156

157+
/**
158+
* @var array<string, mixed>
159+
*/
157160
public array $config = [
158161
'app_path' => 'app',
159162
'kernel_class' => 'App\Kernel',

0 commit comments

Comments
 (0)