diff options
author | tailor <cygnus@janrain.com> | 2007-01-05 23:11:17 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-01-05 23:11:17 +0000 |
commit | 1c17e0e41f25a7db620afae39d117f708918a8c5 (patch) | |
tree | 2c4de6cbbe9dd39541a314075529ca31e6622f9f /Tests/Auth/OpenID | |
parent | 9c0c26fc8380c208c0bb1db16f110492d4c34a73 (diff) | |
download | php-openid-1c17e0e41f25a7db620afae39d117f708918a8c5.zip php-openid-1c17e0e41f25a7db620afae39d117f708918a8c5.tar.gz php-openid-1c17e0e41f25a7db620afae39d117f708918a8c5.tar.bz2 |
[project @ Add prefix to _isError]
Diffstat (limited to 'Tests/Auth/OpenID')
-rw-r--r-- | Tests/Auth/OpenID/Server.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Tests/Auth/OpenID/Server.php b/Tests/Auth/OpenID/Server.php index 3455fac..5bad281 100644 --- a/Tests/Auth/OpenID/Server.php +++ b/Tests/Auth/OpenID/Server.php @@ -71,7 +71,7 @@ class Tests_Auth_OpenID_Test_ServerError extends PHPUnit_TestCase { 'openid.error' => 'plucky'); $encoded = $e->encodeToURL(); - if (_isError($encoded)) { + if (Auth_OpenID_isError($encoded)) { $this->fail($encoded->toString()); return; } @@ -135,7 +135,7 @@ class Tests_Auth_OpenID_Test_Decode extends PHPUnit_TestCase { // Be sure that decoding the args returns an error. $result = $this->decoder->decode($args); - $this->assertTrue(_isError($result)); + $this->assertTrue(Auth_OpenID_isError($result)); } function test_checkidImmediate() @@ -186,7 +186,7 @@ class Tests_Auth_OpenID_Test_Decode extends PHPUnit_TestCase { 'openid.trust_root' => $this->tr_url); $result = $this->decoder->decode($args); - if (_isError($result)) { + if (Auth_OpenID_isError($result)) { $this->assertTrue($result->query); } else { $this->fail(sprintf("Expected Auth_OpenID_Error, instead " . @@ -203,7 +203,7 @@ class Tests_Auth_OpenID_Test_Decode extends PHPUnit_TestCase { 'openid.trust_root' => $this->tr_url); $result = $this->decoder->decode($args); - if (!_isError($result)) { + if (!Auth_OpenID_isError($result)) { $this->fail("Expected Auth_OpenID_Error"); } } @@ -217,7 +217,7 @@ class Tests_Auth_OpenID_Test_Decode extends PHPUnit_TestCase { 'openid.return_to' => 'not a url'); $result = $this->decoder->decode($args);; - if (_isError($result)) { + if (Auth_OpenID_isError($result)) { $this->assertTrue($result->query); } else { $this->fail(sprintf("Expected ProtocolError, instead " . @@ -322,7 +322,7 @@ class Tests_Auth_OpenID_Test_Decode extends PHPUnit_TestCase { // Using DH-SHA1 without supplying dh_consumer_public is an error. $result = $this->decoder->decode($args); - if (!_isError($result)) { + if (!Auth_OpenID_isError($result)) { $this->fail(sprintf("Expected Auth_OpenID_ServerError, got %s", gettype($result))); } @@ -442,7 +442,7 @@ class Tests_Auth_OpenID_Test_Decode extends PHPUnit_TestCase { 'openid.dh_consumer_public' => "my public keeey"); $result = $this->decoder->decode($args); - if (!_isError($result)) { + if (!Auth_OpenID_isError($result)) { $this->fail(sprintf("Expected Auth_OpenID_Error", gettype($result))); } @@ -548,7 +548,7 @@ class Tests_Auth_OpenID_Test_Encode extends PHPUnit_TestCase { $e = new Auth_OpenID_ServerError($args, "wet paint"); $result = $this->encoder->encode($e); - if (!_isError($result, 'Auth_OpenID_EncodingError')) { + if (!Auth_OpenID_isError($result, 'Auth_OpenID_EncodingError')) { $this->fail(sprintf("Expected Auth_OpenID_ServerError, got %s", gettype($result))); } @@ -729,7 +729,7 @@ class Tests_Auth_OpenID_CheckID extends PHPUnit_TestCase { { $answer = $this->request->answer(true); - if (_isError($answer)) { + if (Auth_OpenID_isError($answer)) { $this->fail($answer->toString()); return; } |