public function testCannotUseWithUnsupportedSchemaVersions() { $fakeSchemaNumber = 57; $encrypted = $this->_generateEncryptedStringWithUnsupportedSchemaNumber($fakeSchemaNumber); $decryptor = new Decryptor(); $this->setExpectedException('Exception'); $decryptor->decrypt($encrypted, self::SAMPLE_PASSWORD); }
public function testDecryptingWithBadPasswordFails() { $decryptor = new Decryptor(); $decrypted = $decryptor->decrypt(self::IOS_ENCRYPTED_V2_NON_BLOCK_INTERVAL, 'bad-password'); $this->assertEquals(false, $decrypted); }