From 7f7812a12c99b671b4b3e91c7ffc3c8af10f6c63 Mon Sep 17 00:00:00 2001 From: Arthur Portugal Date: Thu, 30 Jul 2009 22:55:20 +0200 Subject: [PATCH] [svn r22543] Added new folder open id --- tests/main/auth/openid/openid.lib.test.php | 9 +++++ tests/main/auth/openid/xrds.lib.test.php | 46 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 tests/main/auth/openid/openid.lib.test.php create mode 100644 tests/main/auth/openid/xrds.lib.test.php diff --git a/tests/main/auth/openid/openid.lib.test.php b/tests/main/auth/openid/openid.lib.test.php new file mode 100644 index 0000000000..71b3fc80de --- /dev/null +++ b/tests/main/auth/openid/openid.lib.test.php @@ -0,0 +1,9 @@ + diff --git a/tests/main/auth/openid/xrds.lib.test.php b/tests/main/auth/openid/xrds.lib.test.php new file mode 100644 index 0000000000..96e7902b8e --- /dev/null +++ b/tests/main/auth/openid/xrds.lib.test.php @@ -0,0 +1,46 @@ +assertTrue(is_null($res)); + //var_dump($res); + } + + function test_xrds_element_end() { + global $xrds_open_elements, $xrds_services, $xrds_current_service; + $parser=''; + $name=''; + $xrds_current_service['version'] = 2; + $xrds_current_service['version'] = 1; + $xrds_services[] = $xrds_current_service; + $xrds_current_service= array(); + $res=_xrds_element_end($parser, $name); + $this->assertTrue(is_null($res)); + //var_dump($xrds_current_service); + } + + function test_xrds_element_start() { + global $xrds_open_elements; + $parser=''; + $name=''; + $attribs=''; + $xrds_open_elements[] = _xrds_strip_namespace($name); + $res=_xrds_element_start($parser, $name); + $this->assertTrue(is_null($res)); + //var_dump($res); + } + + function test_xrds_strip_namespace() { + $name=''; + $res=_xrds_strip_namespace($name); + $this->assertTrue(is_string($res)); + //var_dump($res); + } +} +?>