Skip to content

Commit 5048463

Browse files
committed
fix test automatic padding
1 parent 5e51681 commit 5048463

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/EncryptionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class EncryptionTest extends PHPUnit_Framework_TestCase
1818
*
1919
* @param string $payload
2020
*/
21-
public function testAutomaticPadding($payload)
21+
public function testPadPayload($payload)
2222
{
23-
$res = Encryption::automaticPadding($payload);
23+
$res = Encryption::padPayload($payload, true);
2424

2525
$this->assertContains('test', $res);
26-
$this->assertEquals(4078, strlen($res));
26+
$this->assertEquals(4080, strlen($res));
2727
}
2828

2929
public function payloadProvider()

0 commit comments

Comments
 (0)