File tree Expand file tree Collapse file tree 4 files changed +42
-4
lines changed Expand file tree Collapse file tree 4 files changed +42
-4
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
3- * Class EncryptedFileStorageTest
3+ * Class FileStorageEncryptedTest
44 *
55 * @created 01.04.2024
66 * @author smiley <smiley@chillerlan.net>
1414use chillerlan \OAuth \OAuthOptions ;
1515
1616/**
17- *
17+ * Tests the file storage (encrypted)
1818 */
19- final class EncryptedFileStorageTest extends FileStorageTest{
19+ final class FileStorageEncryptedTest extends FileStorageTest{
2020
2121 protected function initOptions ():OAuthOptions {
2222 $ options = new OAuthOptions ;
Original file line number Diff line number Diff line change 1717use function implode ;
1818use const DIRECTORY_SEPARATOR ;
1919
20+ /**
21+ * Tests the file storage
22+ */
2023class FileStorageTest extends StorageTestAbstract{
2124
2225 protected const STORAGE_PATH = __DIR__ .DIRECTORY_SEPARATOR .'.filestorage ' ;
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * Class SessionStorageEncryptedTest
4+ *
5+ * @created 01.04.2024
6+ * @author smiley <smiley@chillerlan.net>
7+ * @copyright 2024 smiley
8+ * @license MIT
9+ */
10+ declare (strict_types=1 );
11+
12+ namespace chillerlan \OAuthTest \Storage ;
13+
14+ use chillerlan \OAuth \OAuthOptions ;
15+
16+ /**
17+ * Tests the session storage (encrypted)
18+ */
19+ final class SessionStorageEncryptedTest extends SessionStorageTest{
20+
21+ protected function initOptions ():OAuthOptions {
22+ $ options = new OAuthOptions ;
23+
24+ $ options ->useStorageEncryption = true ;
25+ $ options ->storageEncryptionKey = $ this ::ENCRYPTION_KEY ;
26+ $ options ->sessionStart = true ;
27+ $ options ->sessionStorageVar = 'session_test ' ;
28+
29+ return $ options ;
30+ }
31+
32+ }
Original file line number Diff line number Diff line change 1414use chillerlan \OAuth \OAuthOptions ;
1515use chillerlan \OAuth \Storage \{OAuthStorageInterface , SessionStorage };
1616
17- final class SessionStorageTest extends StorageTestAbstract{
17+ /**
18+ * Tests the session storage
19+ */
20+ class SessionStorageTest extends StorageTestAbstract{
1821
1922 protected function initStorage (OAuthOptions $ options ):OAuthStorageInterface {
2023 return new SessionStorage ($ options );
You can’t perform that action at this time.
0 commit comments