/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Lock/Tests/Store/UnserializableTestTrait.php
41 строка
1016 B
nathanpage
[Lock] DynamoDB store
12 сен 2025, 09:21
12 сен 2025, 09:21
1256628
Код
Авторство
О чём код?
<?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 Symfony\Component\Lock\Tests\Store; use Symfony\Component\Lock\Exception\UnserializableKeyException; use Symfony\Component\Lock\Key; use Symfony\Component\Lock\PersistingStoreInterface; use Symfony\Component\Lock\Test\AbstractStoreTestCase; /** * @author Jérémy Derussé <jeremy@derusse.com> */ trait UnserializableTestTrait { /** * @see AbstractStoreTestCase::getStore() */ abstract protected function getStore(): PersistingStoreInterface; public function testUnserializableKey() { $store = $this->getStore(); $key = new Key(__METHOD__); $store->save($key); $this->assertTrue($store->exists($key)); $this->expectException(UnserializableKeyException::class); serialize($key); } }