aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/bshaffer/oauth2-server-php/test/OAuth2/ResponseTest.php
blob: 2d2c57ee6375511f70a2fc643e06082632ac9b91 (plain) (tree)
1
2
3
4
5

     
                                                
 
                                   











                                                                                                      
<?php

namespace OAuth2;use PHPUnit\Framework\TestCase;

class ResponseTest extends 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);
    }
}