add oauth2/oidc lib
This commit is contained in:
17
library/oauth2/test/OAuth2/ResponseTest.php
Normal file
17
library/oauth2/test/OAuth2/ResponseTest.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace OAuth2;
|
||||
|
||||
class ResponseTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testRenderAsXml()
|
||||
{
|
||||
$response = new Response(array(
|
||||
'foo' => 'bar',
|
||||
'halland' => 'oates',
|
||||
));
|
||||
|
||||
$string = $response->getResponseBody('xml');
|
||||
$this->assertContains('<response><foo>bar</foo><halland>oates</halland></response>', $string);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user