summaryrefslogtreecommitdiffstats
path: root/Tests/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-03-20 23:20:54 +0000
committertailor <cygnus@janrain.com>2006-03-20 23:20:54 +0000
commit1064629a00524bd499b9ce3d4f77ac31d01c07ff (patch)
tree977a0c6594e3922a1070e4de112005b7cc1bd359 /Tests/Auth
parent88bd7078bef36b9448353441d951590b87de423a (diff)
downloadphp-openid-1064629a00524bd499b9ce3d4f77ac31d01c07ff.zip
php-openid-1064629a00524bd499b9ce3d4f77ac31d01c07ff.tar.gz
php-openid-1064629a00524bd499b9ce3d4f77ac31d01c07ff.tar.bz2
[project @ Changed format of binary-to-long tests to avoid PHP 4.3 array / null string bug]
Diffstat (limited to 'Tests/Auth')
-rw-r--r--Tests/Auth/OpenID/BigMath.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/Tests/Auth/OpenID/BigMath.php b/Tests/Auth/OpenID/BigMath.php
index cae983e..7fd2b17 100644
--- a/Tests/Auth/OpenID/BigMath.php
+++ b/Tests/Auth/OpenID/BigMath.php
@@ -196,16 +196,18 @@ class Tests_Auth_OpenID_BigMath extends PHPUnit_TestSuite {
}
$cases = array(
- "\x00" => 0,
- "\x01" => 1,
- "\x00\xFF" => 255,
- "\x00\x80" => 128,
- "\x00\x81" => 129,
- "\x00\x80\x00" => 32768,
- "OpenID is cool" => "1611215304203901150134421257416556"
+ array("\x00", 0),
+ array("\x01", 1),
+ array("\x00\xFF", 255),
+ array("\x00\x80", 128),
+ array("\x00\x81", 129),
+ array("\x00\x80\x00", 32768),
+ array("OpenID is cool",
+ "1611215304203901150134421257416556")
);
- foreach ($cases as $bin => $lng_m) {
+ foreach ($cases as $case) {
+ list($bin, $lng_m) = $case;
$lng = $lib->init($lng_m);
$test = new Tests_Auth_OpenID_BinLongConvert($lib, $bin, $lng);
$test->setName('BinLongConvert ' . bin2hex($bin));