add oauth2/oidc lib

This commit is contained in:
zotlabs
2016-10-07 14:11:24 -07:00
parent bf02e04283
commit 10863a5949
121 changed files with 14970 additions and 0 deletions

View 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);
}
}