Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
constant_time_encoding
Commits
1e4988b9
Commit
1e4988b9
authored
2 years ago
by
Paragon Initiative Enterprises
Browse files
Options
Download
Patches
Plain Diff
Add test for strictness.
Resolves #22.
parent
c9141c24
master
v2.6.3
v2.6.2
v2.6.1
v2.6.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
psalm.xml
+1
-0
psalm.xml
tests/Base64Test.php
+10
-0
tests/Base64Test.php
with
11 additions
and
0 deletions
+11
-0
psalm.xml
+
1
−
0
View file @
1e4988b9
...
...
@@ -6,6 +6,7 @@
<directory
name=
"src"
/>
<ignoreFiles>
<directory
name=
"tests"
/>
<directory
name=
"vendor"
/>
</ignoreFiles>
</projectFiles>
<issueHandlers>
...
...
This diff is collapsed.
Click to expand it.
tests/Base64Test.php
+
10
−
0
View file @
1e4988b9
...
...
@@ -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
*/
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets