From 36b6e8abc2a891458c4185621aade55de51595a4 Mon Sep 17 00:00:00 2001 From: Arthur Portugal Date: Fri, 4 Dec 2009 14:29:06 -0500 Subject: [PATCH] Removed OpenID because is not possible test CT#191 --- tests/main/auth/openid/openid.lib.test.php | 219 --------------------- 1 file changed, 219 deletions(-) delete mode 100755 tests/main/auth/openid/openid.lib.test.php diff --git a/tests/main/auth/openid/openid.lib.test.php b/tests/main/auth/openid/openid.lib.test.php deleted file mode 100755 index a38db988a9..0000000000 --- a/tests/main/auth/openid/openid.lib.test.php +++ /dev/null @@ -1,219 +0,0 @@ -assertTrue(is_string($res)); - $this->assertTrue(is_string($serialized)); - //var_dump($serialized); - } - - function test_openid_dh_base64_to_long() { - $str=''; - $b64 = base64_decode($str); - $res=_openid_dh_base64_to_long($str); - $this->assertTrue(is_numeric($res)); - $this->assertTrue(is_string($b64)); - //var_dump($res); - } - - function test_openid_dh_binary_to_long() { - $str=''; - $bytes = array_merge(unpack('C*', $str)); - $res=_openid_dh_binary_to_long($str); - $this->assertTrue(is_numeric($res)); - $this->assertTrue(is_array($bytes)); - //var_dump($bytes); - } - - function test_openid_dh_long_to_base64() { - $str=''; - $res=_openid_dh_long_to_base64($str); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_dh_long_to_binary() { - $long=''; - $res=_openid_dh_long_to_binary($long); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_dh_rand() { - $stop=''; - $rbytes = _openid_dh_long_to_binary($stop); - $nbytes = strlen($rbytes); - $mxrand = bcpow(256, $nbytes); - $duplicate = bcmod($mxrand, $stop); - $duplicate_cache = array(); - $duplicate_cache[$rbytes] = array($duplicate, $nbytes); - $res=_openid_dh_rand($stop); - if(!is_array($res))$this->assertTrue(is_null($res)); - $this->assertTrue(is_array($duplicate_cache)); - //var_dump($res); - //var_dump($duplicate_cache); - } - - function test_openid_dh_xorsecret() { - $shared=''; - $secret=''; - $res=_openid_dh_xorsecret($shared, $secret); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_encode_message() { - $message=''; - $res=_openid_encode_message($message); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_fix_post() { - $post=''; - $res=_openid_fix_post($post); - $this->assertTrue(is_null($res)); - //var_dump($res); - } - - function test_openid_get_bytes() { - static $f = null; - $num_bytes=''; - $res=_openid_get_bytes($num_bytes); - $this->assertTrue(is_bool($res)); - //var_dump($res); - } - - function test_openid_hmac() { - $key=''; - $text=''; - $res=_openid_hmac($key, $text); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_is_xri() { - $identifier=''; - $res=_openid_is_xri($identifier); - $this->assertTrue(is_bool($res)); - //var_dump($res); - } - - function test_openid_link_href() { - $rel=''; - $html=''; - $res=_openid_link_href($rel, $html); - $this->assertTrue(is_bool($res)); - //var_dump($res); - } - - function test_openid_meta_httpequiv() { - $equiv=''; - $html=''; - $res=_openid_meta_httpequiv($equiv, $html); - $this->assertTrue(is_bool($res)); - //var_dump($res); - } - - function test_openid_nonce() { - $res=_openid_nonce(); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_normalize() { - $identifier=''; - $res=_openid_normalize($identifier); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_normalize_url() { - $url=''; - $res=_openid_normalize_url($url); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_normalize_xri() { - $xri=''; - $res=_openid_normalize_xri($xri); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_parse_message() { - $message=''; - $parsed_message = array(); - $res=_openid_parse_message($message); - $this->assertTrue(is_array($res)); - //var_dump($res); - } - - function test_openid_sha1() { - $text=''; - $res=_openid_sha1($text); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function test_openid_signature() { - $association=''; - $message_array=''; - $keys_to_sign=''; - $res=_openid_signature($association, $message_array, $keys_to_sign); - $this->assertTrue(is_string($res)); - //var_dump($res); - } - - function testbcpowmod() { - $base=''; - $exp=''; - $mod=''; - $res=bcpowmod($base, $exp, $mod); - $this->assertTrue(is_bool($res)); - //var_dump($res); - } - - function testopenid_redirect() { - ob_start(); - $url = api_get_path(WEB_PATH).'tests/all.test2.php'; - $res = openid_redirect($url, $message = array()); - ob_end_clean(); - $this->assertTrue(is_string($res)); - } - - function testopenid_redirect_http() { - $url = api_get_path(WEB_PATH).'tests/all.test2.php'; - ob_start(); - $res=openid_redirect_http($url, $message = array()); - $this->assertTrue(is_null($res)); - ob_end_clean(); - - } -} -?>