1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- require_once(api_get_path(SYS_CODE_PATH).'auth/openid/xrds.lib.php');
- class TestXrds extends UnitTestCase {
- public function __construct(){
- $this->UnitTestCase('XRDS library for OpenID - main/auth/openid/xrds.lib.test.php');
- }
-
- function testxrdsparse() {
- $xml = <<<XML
- <xml version="1.0">
- <users>
- <fname>Christian</fname>
- <lname>Fasa Fasa</lname>
- </users>
- XML;
- $parser = xrds_parse($xml);
- if (is_resource($parser)) {
- $this->assertTrue(is_resource($parser));
- } else {
- $this->assertTrue(is_null($parser));
- }
- }
- }
- ?>
|