Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/tests-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: 'Install project dependencies'
env:
SYMFONY_REQUIRE: 5.4
SYMFONY_REQUIRE: 6.2
run: |
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
vendor/bin/simple-phpunit install
Expand Down
14 changes: 7 additions & 7 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

use Doctrine\Common\Annotations\AnnotationRegistry;
use Symfony\Component\Dotenv\Dotenv;

$file = __DIR__.'/../vendor/autoload.php';
if (!file_exists($file)) {
throw new RuntimeException('Install dependencies using Composer to run the test suite.');
}
$autoload = require $file;
require $file;

AnnotationRegistry::registerLoader(function ($class) use ($autoload) {
$autoload->loadClass($class);

return class_exists($class, false);
});
if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
require dirname(__DIR__).'/config/bootstrap.php';
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}

include __DIR__.'/Fixtures/App/AppKernel.php';
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
],
"require": {
"php": ">=8.0.2",
"doctrine/annotations": "^1.14",
"doctrine/annotations": "^2.0",
"oomphinc/composer-installers-extender": "^2.0",
"symfony/asset": "^6.0",
"symfony/event-dispatcher": "^6.0",
"symfony/expression-language": "^6.0",
"symfony/framework-bundle": "^6.0",
"symfony/flex": "^2",
"symfony/form": "^6.0",
"symfony/framework-bundle": "^6.0",
"symfony/mime": "^6.0",
"symfony/translation": "^6.0",
"symfony/twig-bridge": "^6.0",
Expand Down