diff --git a/src/Helpers/InputReader.php b/src/Helpers/InputReader.php index 0a3564da..461e90c0 100644 --- a/src/Helpers/InputReader.php +++ b/src/Helpers/InputReader.php @@ -25,16 +25,6 @@ final class InputReader extends \ArrayObject return parent::offsetGet($index); } - public function decodeBase64($base64string) - { - if ($base64string === null) - return null; - $commaPosition = strpos($base64string, ','); - if ($commaPosition !== null) - $base64string = substr($base64string, $commaPosition + 1); - return base64_decode($base64string); - } - public function readFile($fileName) { if (!isset($_FILES[$fileName])) diff --git a/tests/Helpers/InputReaderTest.php b/tests/Helpers/InputReaderTest.php deleted file mode 100644 index fe81d4f9..00000000 --- a/tests/Helpers/InputReaderTest.php +++ /dev/null @@ -1,21 +0,0 @@ -decodeBase64('data:text/plain,YXdlc29tZSBkb2c='); - $expected = 'awesome dog'; - $this->assertEquals($expected, $actual); - } - - public function testDecodingEmptyBase64() - { - $inputReader = new InputReader(); - $this->assertNull($inputReader->decodeBase64($inputReader->iDontEvenExist)); - } -}