summaryrefslogtreecommitdiffstats
path: root/Tests/Auth/OpenID
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-02-09 17:52:45 +0000
committerJosh Hoyt <josh@janrain.com>2006-02-09 17:52:45 +0000
commit3c8443832d2d20a755e7320e26e8bfd4a58fe105 (patch)
treee7b58067e8e5e8538eb1a3e923145f4843fe3130 /Tests/Auth/OpenID
parent412f2f8f72290b66afd83687e192db5fe0cdfef3 (diff)
downloadphp-openid-3c8443832d2d20a755e7320e26e8bfd4a58fe105.zip
php-openid-3c8443832d2d20a755e7320e26e8bfd4a58fe105.tar.gz
php-openid-3c8443832d2d20a755e7320e26e8bfd4a58fe105.tar.bz2
[project @ Put trust root functionality in a static class]
Diffstat (limited to 'Tests/Auth/OpenID')
-rw-r--r--Tests/Auth/OpenID/TrustRoot.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/Tests/Auth/OpenID/TrustRoot.php b/Tests/Auth/OpenID/TrustRoot.php
index 09c5578..45ee5a8 100644
--- a/Tests/Auth/OpenID/TrustRoot.php
+++ b/Tests/Auth/OpenID/TrustRoot.php
@@ -18,8 +18,8 @@ class Tests_Auth_OpenID_TRParseCase extends PHPUnit_TestCase {
function runTest()
{
- $is_sane = Auth_OpenID_saneTrustRoot($this->case);
- $parsed = (bool)Auth_OpenID___normalizeTrustRoot($this->case);
+ $is_sane = Auth_OpenID_TrustRoot::isSane($this->case);
+ $parsed = (bool)Auth_OpenID_TrustRoot::_parse($this->case);
switch ($this->expected) {
case 'sane':
$this->assertTrue($is_sane);
@@ -47,12 +47,7 @@ class Tests_Auth_OpenID_TRMatchCase extends PHPUnit_TestCase {
function runTest()
{
- $matches = Auth_OpenID_matchTrustRoot($this->tr, $this->rt);
- if ($this->matches && !$matches) {
- var_export(Auth_OpenID___normalizeTrustRoot($this->tr));
- var_export(Auth_OpenID___normalizeTrustRoot($this->rt));
- }
-
+ $matches = Auth_OpenID_TrustRoot::match($this->tr, $this->rt);
$this->assertEquals((bool)$this->matches, (bool)$matches);
}
}