This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
rangitaki/vendor/bshaffer/oauth2-server-php/test/OAuth2/ResponseTest.php
2016-05-07 12:59:40 +02:00

17 lines
406 B
PHP

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