D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-php83
/
root
/
usr
/
share
/
tests
/
pear
/
Services_Yadis
/
tests
/
Filename :
YadisTest.php
back
Copy
<?php require_once 'Services/Yadis.php'; require_once 'HTTP/Request2.php'; require_once 'HTTP/Request2/Adapter/Mock.php'; class Services_YadisTest extends PHPUnit_Framework_TestCase { /** * @expectedException Services_Yadis_Exception * @expectedExceptionMessage Invalid response to Yadis protocol received: A test error */ public function testGetException() { $httpMock = new HTTP_Request2_Adapter_Mock(); $httpMock->addResponse( new HTTP_Request2_Exception('A test error', 500) ); $http = new HTTP_Request2(); $http->setAdapter($httpMock); $sy = new Services_Yadis('http://example.org/openid'); $sy->setHttpRequest($http); $xrds = $sy->discover(); } } ?>
Name
Size
Last Modified
Owner
Permissions
Actions
Yadis
Dir
May 20 2024 4:33:40
root
0755
TestConfiguration.php.dist
0.102
KB
May 20 2024 4:33:40
root
0644
TestHelper.php
0.44
KB
May 20 2024 4:33:40
root
0644
YadisTest.php
0.756
KB
May 20 2024 4:33:40
root
0644
2017 © D7net | D704T team