Skip to content

Commit 69d9901

Browse files
authored
Add Symfony 8.1 to CI (#142)
1 parent 1f11f1d commit 69d9901

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
php: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
22-
symfony: [ '5.4', '6.4', '7.4', '8.0' ]
22+
symfony: [ '5.4', '6.4', '7.4', '8.0', '8.1' ]
2323
dependencies: [ 'highest', 'lowest' ]
2424
exclude:
2525
- php: '8.1'
@@ -30,6 +30,12 @@ jobs:
3030
symfony: '8.0'
3131
- php: '8.3'
3232
symfony: '8.0'
33+
- php: '8.1'
34+
symfony: '8.1'
35+
- php: '8.2'
36+
symfony: '8.1'
37+
- php: '8.3'
38+
symfony: '8.1'
3339
services:
3440
postgres:
3541
image: postgres:17

tests/Application/MessengerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testAsyncPurgingWithDoctrineTransport(): void
8383

8484
self::assertNoUrlsArePurged();
8585

86-
self::runCommand(self::$kernel, 'messenger:consume', ['async', '-l' => 1, '-t' => 5]);
86+
self::executeCommand(self::$kernel, 'messenger:consume', ['async', '-l' => 1, '-t' => 5]);
8787

8888
self::assertUrlIsPurged('/person/'.$person->id);
8989
}

tests/Functional/AbstractKernelTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ protected static function initializeApplication(array $options = []): void
5858
static::bootKernel($options);
5959
}
6060

61-
self::runCommand(self::$kernel, 'doctrine:schema:drop', ['--force' => true]);
62-
self::runCommand(self::$kernel, 'doctrine:schema:create');
61+
self::executeCommand(self::$kernel, 'doctrine:schema:drop', ['--force' => true]);
62+
self::executeCommand(self::$kernel, 'doctrine:schema:create');
6363
}
6464

6565
protected static function getKernelClass(): string
@@ -89,7 +89,7 @@ private static function getVarDir(): string
8989
return sys_get_temp_dir().'/Purgatory_'.substr(strrchr(static::class, '\\'), 1);
9090
}
9191

92-
protected static function runCommand(KernelInterface $kernel, string $command, array $parameters = []): void
92+
protected static function executeCommand(KernelInterface $kernel, string $command, array $parameters = []): void
9393
{
9494
$application = new Application($kernel);
9595
$application->setAutoExit(false);

0 commit comments

Comments
 (0)