‪TYPO3CMS  9.5
PhpBackendTest.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
18 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
19 
23 class ‪PhpBackendTest extends UnitTestCase
24 {
28  protected ‪$resetSingletonInstances = true;
29 
34  {
35  $subject = new ‪PhpBackend();
36  $keyPair = $subject->createNewKeyPair();
37  $this->assertNotNull($keyPair, 'Test fails because of broken environment: PHP OpenSSL extension is not working properly.');
38  $this->assertTrue($keyPair->isReady());
39  }
40 
45  {
46  $subject = new ‪PhpBackend();
47  $keyPair1 = $subject->createNewKeyPair();
48  $this->assertNotNull($keyPair1, 'Test fails because of broken environment: PHP OpenSSL extension is not working properly.');
49  $this->assertSame(
50  $keyPair1,
51  $subject->createNewKeyPair()
52  );
53  }
54 }
‪TYPO3\CMS\Rsaauth\Tests\Unit\Backend
Definition: CommandLineBackendTest.php:4
‪TYPO3\CMS\Rsaauth\Tests\Unit\Backend\PhpBackendTest\createNewKeyPairCalledTwoTimesReturnsSameKeyPairInstance
‪createNewKeyPairCalledTwoTimesReturnsSameKeyPairInstance()
Definition: PhpBackendTest.php:43
‪TYPO3\CMS\Rsaauth\Tests\Unit\Backend\PhpBackendTest\createNewKeyPairCreatesReadyKeyPair
‪createNewKeyPairCreatesReadyKeyPair()
Definition: PhpBackendTest.php:32
‪TYPO3\CMS\Rsaauth\Backend\PhpBackend
Definition: PhpBackend.php:23
‪TYPO3\CMS\Rsaauth\Tests\Unit\Backend\PhpBackendTest\$resetSingletonInstances
‪bool $resetSingletonInstances
Definition: PhpBackendTest.php:27
‪TYPO3\CMS\Rsaauth\Tests\Unit\Backend\PhpBackendTest
Definition: PhpBackendTest.php:24