function OpenIDTestCase::testOpenidDhXorsecret
7.x openid.test | OpenIDTestCase::testOpenidDhXorsecret() |
Test _openid_dh_xorsecret().
File
- drupal-7.x/
modules/ openid/ openid.test, line 693 - Tests for openid.module.
Class
- OpenIDTestCase
- Test internal helper functions.
Code
function testOpenidDhXorsecret() {
$this->assertEqual(_openid_dh_xorsecret('123456790123456790123456790', "abc123ABC\x00\xFF"), "\xa4'\x06\xbe\xf1.\x00y\xff\xc2\xc1", '_openid_dh_xorsecret() returned expected result.');
}