Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Added testcase for BlockCipher using 0 values #5902

Closed
wants to merge 1 commit into from
Closed

Added testcase for BlockCipher using 0 values #5902

wants to merge 1 commit into from

Conversation

auterium
Copy link
Contributor

@auterium auterium commented Mar 3, 2014

Tested against 0 (integer), 0.0 (float), and '0' (string). All 3 values should be accepted

Tested against 0 (integer), 0.0 (float), and '0' (string). All 3 values should be accepted
@auterium
Copy link
Contributor Author

auterium commented Mar 3, 2014

@Maks3w here's the test case for #5680

@@ -149,6 +149,23 @@ public function testEncryptDecryptUsingBinary()
}
}

public function testEncryptDecryptUsingZero()
{
$possibleValues = array(0, 0.0, '0');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refactor this for use a data provider

@Maks3w Maks3w added this to the 2.2.6 milestone Mar 6, 2014
@weierophinney weierophinney modified the milestones: 2.3.0, 2.2.6 Mar 7, 2014
weierophinney added a commit that referenced this pull request Mar 10, 2014
Added testcase for BlockCipher using 0 values
weierophinney added a commit that referenced this pull request Mar 10, 2014
- Changed test to use a data provider
- Implemented a fix for the behavior demonstrated by the test
weierophinney added a commit that referenced this pull request Mar 10, 2014
@weierophinney
Copy link
Member

Merged to master with updates to the library that address the issue demonstrated in the tests.

weierophinney added a commit to zendframework/zend-crypt that referenced this pull request May 15, 2015
…ch-1

Added testcase for BlockCipher using 0 values
weierophinney added a commit to zendframework/zend-crypt that referenced this pull request May 15, 2015
…ed in test

- Changed test to use a data provider
- Implemented a fix for the behavior demonstrated by the test
weierophinney added a commit to zendframework/zend-crypt that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants