diff --git a/tst/ControllerTest.php b/tst/ControllerTest.php index daba8f1f..868d52da 100644 --- a/tst/ControllerTest.php +++ b/tst/ControllerTest.php @@ -816,7 +816,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase $token = base64_encode(hash_hmac( 'sha256', Helper::getPasteId(), random_bytes(32), true )); - $burnPaste = Helper::getPaste(2, array('challenge' => $token)); + $burnPaste = Helper::getPaste(2, array('challenge' => $token)); $burnPaste['adata'][3] = 1; $this->_data->create(Helper::getPasteId(), $burnPaste); $this->assertTrue($this->_data->exists(Helper::getPasteId()), 'paste exists before deleting data'); @@ -841,7 +841,7 @@ class ControllerTest extends PHPUnit_Framework_TestCase $token = base64_encode(hash_hmac( 'sha256', Helper::getPasteId(), random_bytes(32), true )); - $burnPaste = Helper::getPaste(2, array('challenge' => base64_encode(random_bytes(32)))); + $burnPaste = Helper::getPaste(2, array('challenge' => base64_encode(random_bytes(32)))); $burnPaste['adata'][3] = 1; $this->_data->create(Helper::getPasteId(), $burnPaste); $this->assertTrue($this->_data->exists(Helper::getPasteId()), 'paste exists before deleting data'); diff --git a/tst/ModelTest.php b/tst/ModelTest.php index 4a40a25a..5bdb9feb 100644 --- a/tst/ModelTest.php +++ b/tst/ModelTest.php @@ -274,9 +274,9 @@ class ModelTest extends PHPUnit_Framework_TestCase public function testToken() { - $pasteData = Helper::getPastePost(); + $pasteData = Helper::getPastePost(); $pasteData['meta']['challenge'] = base64_encode(random_bytes(32)); - $token = base64_encode(hash_hmac( + $token = base64_encode(hash_hmac( 'sha256', Helper::getPasteId(), base64_decode($pasteData['meta']['challenge']), true )); $this->_model->getPaste(Helper::getPasteId())->delete(); @@ -331,7 +331,7 @@ class ModelTest extends PHPUnit_Framework_TestCase */ public function testInvalidFormat() { - $pasteData = Helper::getPastePost(); + $pasteData = Helper::getPastePost(); $pasteData['adata'][1] = 'foo'; $this->_model->getPaste(Helper::getPasteId())->delete();