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 1
1
<?php
2
2
/**
3
- * Class EncryptedFileStorageTest
3
+ * Class FileStorageEncryptedTest
4
4
*
5
5
* @created 01.04.2024
6
6
* @author smiley <smiley@chillerlan.net>
14
14
use chillerlan \OAuth \OAuthOptions ;
15
15
16
16
/**
17
- *
17
+ * Tests the file storage (encrypted)
18
18
*/
19
- final class EncryptedFileStorageTest extends FileStorageTest{
19
+ final class FileStorageEncryptedTest extends FileStorageTest{
20
20
21
21
protected function initOptions ():OAuthOptions {
22
22
$ options = new OAuthOptions ;
Original file line number Diff line number Diff line change 17
17
use function implode ;
18
18
use const DIRECTORY_SEPARATOR ;
19
19
20
+ /**
21
+ * Tests the file storage
22
+ */
20
23
class FileStorageTest extends StorageTestAbstract{
21
24
22
25
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 14
14
use chillerlan \OAuth \OAuthOptions ;
15
15
use chillerlan \OAuth \Storage \{OAuthStorageInterface , SessionStorage };
16
16
17
- final class SessionStorageTest extends StorageTestAbstract{
17
+ /**
18
+ * Tests the session storage
19
+ */
20
+ class SessionStorageTest extends StorageTestAbstract{
18
21
19
22
protected function initStorage (OAuthOptions $ options ):OAuthStorageInterface {
20
23
return new SessionStorage ($ options );
You can’t perform that action at this time.
0 commit comments