injectSettings() public method

Injects the OpenSSL configuration to be used
public injectSettings ( array $settings ) : void
$settings array
return void
コード例 #1
0
 /**
  * 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(RsaWalletServicePhp::class, ['dummy']);
     $this->rsaWalletService->injectSettings($settings);
     $this->keyPairUuid = $this->rsaWalletService->generateNewKeypair();
 }