Browse Source

Bugfix in strlen() in tests

Curtis Farnham 7 years ago
parent
commit
6b85ce24a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/RNCryptor/CryptorTest.php

+ 1 - 1
tests/RNCryptor/CryptorTest.php

@@ -138,7 +138,7 @@ class CryptorTest extends \PHPUnit_Framework_TestCase {
   		$encrypted = $encryptor->encrypt($plaintext, self::SAMPLE_PASSWORD);
 
   		$encryptedBinary = base64_decode($encrypted);
-  		$encryptedBinary = chr($fakeSchemaNumber) . substr($encryptedBinary, 1, strlen($encryptedBinary - 1));
+        $encryptedBinary = chr($fakeSchemaNumber) . substr($encryptedBinary, 1);
   		return base64_encode($encryptedBinary);
   	}
 }