/** * Set up this testcase. * In this case this only marks the test to be skipped if openssl extension is not installed * * @return void */ public function setUp() { vfsStream::setup('Foo'); $settings['security']['cryptography']['RSAWalletServicePHP']['keystorePath'] = 'vfs://Foo/EncryptionKey'; $this->rsaWalletService = $this->getAccessibleMock(\TYPO3\Flow\Security\Cryptography\RsaWalletServicePhp::class, array('dummy')); $this->rsaWalletService->injectSettings($settings); $this->keyPairUuid = $this->rsaWalletService->generateNewKeypair(); }
/** * Set up this testcase. * In this case this only marks the test to be skipped if openssl extension is not installed * * @return void */ public function setUp() { if (!function_exists('openssl_pkey_new')) { $this->markTestSkipped('openssl_pkey_new() not available'); } else { vfsStream::setup('Foo'); $settings['security']['cryptography']['RSAWalletServicePHP']['keystorePath'] = 'vfs://Foo/EncryptionKey'; $this->rsaWalletService = $this->getAccessibleMock('TYPO3\\Flow\\Security\\Cryptography\\RsaWalletServicePhp', array('dummy')); $this->rsaWalletService->injectSettings($settings); $this->keyPairUuid = $this->rsaWalletService->generateNewKeypair(); } }