Skip to content
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
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
strategy:
matrix:
php: ["8.2", "8.5"]
symfony: ["5.4", "6.4", "7.4", "8.0"]
symfony: ["5.4", "6.4", "7.4", "8.1"]
exclude:
- php: "8.2"
symfony: "8.0"
symfony: "8.1"

steps:
- uses: actions/checkout@v6
Expand All @@ -35,15 +35,15 @@ jobs:

- name: Install dependencies
run: |
sed -i "s/\^5.4 | \^6.4 | \^7.4 | \^8.0/${{ matrix.symfony }}.*/g" composer.json
sed -i "s/\^5.4 | \^6.4 | \^7.4 | \^8.1/${{ matrix.symfony }}.*/g" composer.json
composer install --prefer-dist --no-progress

- name: Quality checks
if: matrix.symfony == '8.0'
if: matrix.symfony == '8.1'
run: composer validate --strict && composer audit && composer cs-check && composer phpstan

- name: Run module tests
run: vendor/bin/phpunit tests ${{ matrix.symfony == '8.0' && '--coverage-text --coverage-filter src' || '' }}
run: vendor/bin/phpunit tests ${{ matrix.symfony == '8.1' && '--coverage-text --coverage-filter src' || '' }}

- name: Prepare Symfony app & run tests
run: |
Expand Down
80 changes: 40 additions & 40 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,46 +33,46 @@
"friendsofphp/php-cs-fixer": "^3.94",
"phpstan/phpstan": "^2.2",
"phpunit/phpunit": "^11.0 | ^12.0",
"symfony/browser-kit": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/cache": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/clock": "^6.4 | ^7.4 | ^8.0",
"symfony/config": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/console": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/css-selector": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/dependency-injection": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/dom-crawler": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/dotenv": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/error-handler": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/event-dispatcher": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/filesystem": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/finder": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/form": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/framework-bundle": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/http-client": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/http-foundation": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/http-kernel": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/mailer": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/messenger": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/mime": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/notifier": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/options-resolver": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/password-hasher": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/process": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/property-access": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/property-info": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/routing": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/security-bundle": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/security-core": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/security-csrf": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/security-http": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/stopwatch": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/string": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/translation": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/twig-bundle": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/validator": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/var-dumper": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/var-exporter": "^5.4 | ^6.4 | ^7.4",
"symfony/yaml": "^5.4 | ^6.4 | ^7.4 | ^8.0",
"symfony/browser-kit": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/cache": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/clock": "^6.4 | ^7.4 | ^8.1",
"symfony/config": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/console": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/css-selector": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/dependency-injection": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/dom-crawler": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/dotenv": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/error-handler": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/event-dispatcher": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/filesystem": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/finder": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/form": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/framework-bundle": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/http-client": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/http-foundation": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/http-kernel": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/mailer": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/messenger": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/mime": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/notifier": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/options-resolver": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/password-hasher": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/process": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/property-access": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/property-info": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/routing": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/security-bundle": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/security-core": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/security-csrf": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/security-http": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/stopwatch": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/string": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/translation": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/twig-bundle": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/validator": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/var-dumper": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"symfony/var-exporter": "^6.4 | ^7.4 | ^8.1",
"symfony/yaml": "^5.4 | ^6.4 | ^7.4 | ^8.1",
"vlucas/phpdotenv": "^4.2 | ^5.6"
},
"suggest": {
Expand Down
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` `5.4.x`, `6.4.x`, `7.4.x` or `8.0.x`, as per the [Symfony supported versions](https://symfony.com/releases).
* `Symfony` `5.4.x`, `6.4.x`, `7.4.x` or `8.1.x`, as per the [Symfony supported versions](https://symfony.com/releases).
* `PHP 8.2` or higher.

## Installation
Expand Down
2 changes: 1 addition & 1 deletion src/Codeception/Module/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
*
* ## Config
*
* ### Symfony 5.4, 6.4, 7.4 or 8.0
* ### Symfony 5.4, 6.4, 7.4 or 8.1
*
* * `app_path`: 'src' - Specify custom path to your app dir, where the kernel interface is located.
* * `environment`: 'local' - Environment used for load kernel
Expand Down
4 changes: 4 additions & 0 deletions tests/_app/Doctrine/DoctrineSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public static function createEntityManager(): EntityManagerInterface
$config->setProxyNamespace('TestsProxies');
$config->setAutoGenerateProxyClasses(true);

if (PHP_VERSION_ID >= 80400 && method_exists($config, 'enableNativeLazyObjects')) {
$config->enableNativeLazyObjects(true);
}

$connection = DriverManager::getConnection(['driver' => 'pdo_sqlite', 'memory' => true]);

if (method_exists(EntityManager::class, 'create')) {
Expand Down