Commit 1e4988b9 authored by Paragon Initiative Enterprises's avatar Paragon Initiative Enterprises
Browse files

Add test for strictness.

Resolves #22.
No related merge requests found
Showing with 11 additions and 0 deletions
+11 -0
......@@ -6,6 +6,7 @@
<directory name="src" />
<ignoreFiles>
<directory name="tests" />
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
......
......@@ -84,6 +84,16 @@ class Base64Test extends TestCase
}
}
public function testIssue22()
{
// Non-strict: ok
Base64::decode('00==');
// Strict: not ok
$this->expectException(RangeException::class);
Base64::decode('00==', true);
}
/**
* @dataProvider canonicalDataProvider
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment