/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Lock/Tests/Store/RelayStoreTest.php
39 строк
1 KB
Christian Flothmann
replace PHPUnit annotations with attributes
04 авг 2025, 10:05
04 авг 2025, 10:05
982f89c
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Store; use PHPUnit\Framework\Attributes\Group; use PHPUnit\Framework\Attributes\RequiresPhpExtension; use Relay\Relay; use Symfony\Component\Lock\Tests\Store\AbstractRedisStoreTestCase; use Symfony\Component\Lock\Tests\Store\SharedLockStoreTestTrait; #[RequiresPhpExtension('relay')] #[Group('integration')] class RelayStoreTest extends AbstractRedisStoreTestCase { use SharedLockStoreTestTrait; public static function setUpBeforeClass(): void { try { new Relay(...explode(':', getenv('REDIS_HOST'))); } catch (\Relay\Exception $e) { self::markTestSkipped($e->getMessage()); } } protected function getRedisConnection(): Relay { return new Relay(...explode(':', getenv('REDIS_HOST'))); } }