/**
  * set up test environment
  */
 public function setUp()
 {
     if (PHP_MAJOR_VERSION === 7 && PHP_MINOR_VERSION >= 1) {
         $this->markTestSkipped('Will fail from PHP 7.1 on anyway because of deprecation notice.');
     }
     Secret::switchBacking(Secret::BACKING_MCRYPT);
 }
 /**
  * set up test environment
  */
 public function setUp()
 {
     Secret::switchBacking(Secret::BACKING_OPENSSL);
 }
 /**
  * set up test environment
  */
 public function setUp()
 {
     Secret::switchBacking(Secret::BACKING_PLAINTEXT);
 }
示例#4
0
 /**
  * @test
  */
 public function canSwitchBackingWhenAllSecretInstancesDestroyed()
 {
     $secret = Secret::create('payload');
     $secret = null;
     expect(function () {
         assertTrue(Secret::switchBacking(Secret::BACKING_PLAINTEXT));
     })->doesNotThrow();
 }