diff --git a/tests/lib/SimpleSAML/Store/SQLStoreTest.php b/tests/lib/SimpleSAML/Store/SQLStoreTest.php index d8e43b7327dcc2e3d66606610ca1904e8c723e49..84c91c185bbbe66fcfeacd4d023cbc999e1762df 100644 --- a/tests/lib/SimpleSAML/Store/SQLStoreTest.php +++ b/tests/lib/SimpleSAML/Store/SQLStoreTest.php @@ -8,7 +8,6 @@ use PHPUnit\Framework\TestCase; use SimpleSAML\Configuration; use SimpleSAML\Store; use SimpleSAML\Store\StoreFactory; -use SimpleSAML\Store\StoreInterface; /** * Tests for the SQL store. @@ -21,8 +20,8 @@ use SimpleSAML\Store\StoreInterface; */ class SQLStoreTest extends TestCase { - /** @var \SimpleSAML\Store\StoreInterface $store */ - private StoreInterface $store; + /** @var \SimpleSAML\Store\SQLStore $store */ + private Store\SQLStore $store; /** diff --git a/tests/lib/SimpleSAML/Store/StoreFactoryTest.php b/tests/lib/SimpleSAML/Store/StoreFactoryTest.php index e1f332831e5fa6975f5a30dc2ac363699e62e410..347cf399200241558895a40f73d19a7d6f6a29c6 100644 --- a/tests/lib/SimpleSAML/Store/StoreFactoryTest.php +++ b/tests/lib/SimpleSAML/Store/StoreFactoryTest.php @@ -77,6 +77,7 @@ class StoreFactoryTest extends TestCase 'store.redis.prefix' => 'phpunit_', ], '[ARRAY]', 'simplesaml'); + /** @psalm-var \SimpleSAML\Store\RedisStore $store */ $store = StoreFactory::getInstance(); $store->redis = $this->getMockBuilder(Client::class) ->setMethods(['get', 'set', 'setex', 'del', 'disconnect', '__destruct']) @@ -151,7 +152,7 @@ class StoreFactoryTest extends TestCase /** - * @param \SimpleSAML\Configuration|\SimpleSAML\Store\StoreFactory $service + * @param \SimpleSAML\Configuration|\SimpleSAML\Store\StoreInterface $service * @param class-string $className */ protected function clearInstance($service, string $className): void