Пример #1
0
 public function testEncryptorNoWrappers()
 {
     $client = static::createClient();
     $encryptor = new ObjectEncryptor($client->getContainer());
     try {
         $encryptor->encrypt("test");
         $this->fail("Misconfigured object encryptor must raise exception.");
     } catch (ApplicationException $e) {
     }
 }
Пример #2
0
 public function testEncryptorNoWrappers()
 {
     $encryptor = new ObjectEncryptor();
     try {
         $encryptor->encrypt("test");
         $this->fail("Misconfigured object encryptor must raise exception.");
     } catch (ApplicationException $e) {
     }
 }