summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-01-05 00:08:05 +0000
committertailor <cygnus@janrain.com>2006-01-05 00:08:05 +0000
commit7019fdc4cb9fa51b8bcb6492f5886e7bbe069db3 (patch)
treebdb0a6ead27742223b8053ed8c1a32de31d1fba2
parent07fb1ab5b3ae6b2cac87674be3b5951fe618c1a0 (diff)
downloadphp-openid-7019fdc4cb9fa51b8bcb6492f5886e7bbe069db3.zip
php-openid-7019fdc4cb9fa51b8bcb6492f5886e7bbe069db3.tar.gz
php-openid-7019fdc4cb9fa51b8bcb6492f5886e7bbe069db3.tar.bz2
[project @ Fixed brace style]
-rw-r--r--Tests/Net/OpenID/OIDUtil.php27
1 files changed, 16 insertions, 11 deletions
diff --git a/Tests/Net/OpenID/OIDUtil.php b/Tests/Net/OpenID/OIDUtil.php
index 5f268b9..050b386 100644
--- a/Tests/Net/OpenID/OIDUtil.php
+++ b/Tests/Net/OpenID/OIDUtil.php
@@ -4,8 +4,8 @@ require_once('PHPUnit.php');
require_once('Net/OpenID/OIDUtil.php');
class Tests_Net_OpenID_OIDUtil extends PHPUnit_TestCase {
- function test_base64() {
-
+ function test_base64()
+ {
// This is not good for international use, but PHP doesn't
// appear to provide access to the local alphabet.
$letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
@@ -19,11 +19,13 @@ class Tests_Net_OpenID_OIDUtil extends PHPUnit_TestCase {
$allowed_d[$c] = null;
}
- function checkEncoded($obj, $str, $allowed_array) {
- for ($i = 0; $i < strlen($str); $i++) {
- $obj->assertTrue(array_key_exists($str[$i], $allowed_array));
+ function checkEncoded($obj, $str, $allowed_array)
+ {
+ for ($i = 0; $i < strlen($str); $i++) {
+ $obj->assertTrue(array_key_exists($str[$i],
+ $allowed_array));
+ }
}
- }
$cases = array(
"",
@@ -41,9 +43,10 @@ class Tests_Net_OpenID_OIDUtil extends PHPUnit_TestCase {
$this->assertEquals($s_prime, $s);
}
- function random_ordinal($unused) {
- return rand(0, 255);
- }
+ function random_ordinal($unused)
+ {
+ return rand(0, 255);
+ }
// Randomized test
foreach (range(0, 49) as $i) {
@@ -58,7 +61,8 @@ class Tests_Net_OpenID_OIDUtil extends PHPUnit_TestCase {
}
}
- function test_normalizeUrl() {
+ function test_normalizeUrl()
+ {
$this->assertEquals("http://foo.com/",
Net_OpenID_normalizeUrl("foo.com"));
@@ -135,7 +139,8 @@ assert not should_raise and actual == expected, case
$this->assertNull(Net_OpenID_normalizeUrl('http://'));
}
- function test_appendArgs() {
+ function test_appendArgs()
+ {
$simple = 'http://www.example.com/';