TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
CommandLineBackendTest.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Rsaauth\Tests\Unit\Backend
;
3
17
use
TYPO3\CMS\Rsaauth\Backend\CommandLineBackend
;
18
24
class
CommandLineBackendTest
extends
\TYPO3\CMS\Core\Tests\UnitTestCase
{
28
protected
$subject
= NULL;
29
30
public
function
setUp
() {
31
if
(TYPO3_OS ===
'WIN'
) {
32
$this->markTestSkipped(
'This test is not available on Windows.'
);
33
}
34
35
$this->subject =
new
CommandLineBackend
();
36
}
37
41
public
function
createNewKeyPairCreatesReadyKeyPair
() {
42
$keyPair = $this->subject->createNewKeyPair();
43
if
($keyPair === NULL) {
44
$this->markTestSkipped(
'KeyPair could not be generated. Maybe openssl was not found.'
);
45
}
46
47
$this->assertTrue($keyPair->isReady());
48
}
49
53
public
function
createNewKeyPairCreatesKeyPairWithDefaultExponent
() {
54
$keyPair = $this->subject->createNewKeyPair();
55
if
($keyPair === NULL) {
56
$this->markTestSkipped(
'KeyPair could not be generated. Maybe openssl was not found.'
);
57
}
58
59
$this->assertSame(
60
CommandLineBackend::DEFAULT_EXPONENT
,
61
$keyPair->getExponent()
62
);
63
}
64
68
public
function
createNewKeyPairCalledTwoTimesReturnsSameKeyPairInstance
() {
69
$this->assertSame(
70
$this->subject->createNewKeyPair(),
71
$this->subject->createNewKeyPair()
72
);
73
}
74
}
CommandLineBackend
TYPO3\CMS\Rsaauth\Tests\Unit\Backend\CommandLineBackendTest\createNewKeyPairCalledTwoTimesReturnsSameKeyPairInstance
createNewKeyPairCalledTwoTimesReturnsSameKeyPairInstance()
Definition:
CommandLineBackendTest.php:68
TYPO3\CMS\Rsaauth\Tests\Unit\Backend\CommandLineBackendTest\createNewKeyPairCreatesKeyPairWithDefaultExponent
createNewKeyPairCreatesKeyPairWithDefaultExponent()
Definition:
CommandLineBackendTest.php:53
TYPO3\CMS\Rsaauth\Tests\Unit\Backend\CommandLineBackendTest\setUp
setUp()
Definition:
CommandLineBackendTest.php:30
TYPO3\CMS\Rsaauth\Tests\Unit\Backend\CommandLineBackendTest\$subject
$subject
Definition:
CommandLineBackendTest.php:28
TYPO3\CMS\Rsaauth\Tests\Unit\Backend\CommandLineBackendTest
Definition:
CommandLineBackendTest.php:24
TYPO3\CMS\Rsaauth\Tests\Unit\Backend
Definition:
CommandLineBackendTest.php:2
TYPO3\CMS\Rsaauth\Tests\Unit\Backend\CommandLineBackendTest\createNewKeyPairCreatesReadyKeyPair
createNewKeyPairCreatesReadyKeyPair()
Definition:
CommandLineBackendTest.php:41
TYPO3\CMS\Core\Tests\UnitTestCase
Definition:
UnitTestCase.php:26
TYPO3\CMS\Rsaauth\Backend\CommandLineBackend
Definition:
CommandLineBackend.php:26
TYPO3\CMS\Rsaauth\Backend\CommandLineBackend\DEFAULT_EXPONENT
const DEFAULT_EXPONENT
Definition:
CommandLineBackend.php:30
typo3
sysext
rsaauth
Tests
Unit
Backend
CommandLineBackendTest.php
Generated on Wed Aug 7 2019 09:52:30 for TYPO3 CMS by
1.8.13