diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-01-02 22:41:03 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-01-02 22:41:03 +0100 |
commit | dbd230da7407ac70483c004bc82f4b8619c42760 (patch) | |
tree | 14e016f85e6a8466a2dfcdbeadaab0adb8cff153 /vendor/bshaffer/oauth2-server-php/test/OAuth2/RequestTest.php | |
parent | a19563e1396cb882063db3ce3f355b2db48175e9 (diff) | |
download | volse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.tar.gz volse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.tar.bz2 volse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.zip |
update composer libs
Diffstat (limited to 'vendor/bshaffer/oauth2-server-php/test/OAuth2/RequestTest.php')
-rw-r--r-- | vendor/bshaffer/oauth2-server-php/test/OAuth2/RequestTest.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/bshaffer/oauth2-server-php/test/OAuth2/RequestTest.php b/vendor/bshaffer/oauth2-server-php/test/OAuth2/RequestTest.php index cbf8f096b..770cd8994 100644 --- a/vendor/bshaffer/oauth2-server-php/test/OAuth2/RequestTest.php +++ b/vendor/bshaffer/oauth2-server-php/test/OAuth2/RequestTest.php @@ -86,6 +86,24 @@ class RequestTest extends TestCase $this->assertEquals('correct', $request->query('client_id', $request->request('client_id'))); } + public function testRequestHasHeadersAndServerHeaders() + { + $request = new Request( + array(), + array(), + array(), + array(), + array(), + array('CONTENT_TYPE' => 'text/xml', 'PHP_AUTH_USER' => 'client_id', 'PHP_AUTH_PW' => 'client_pass'), + null, + array('CONTENT_TYPE' => 'application/json') + ); + + $this->assertSame('client_id', $request->headers('PHP_AUTH_USER')); + $this->assertSame('client_pass', $request->headers('PHP_AUTH_PW')); + $this->assertSame('application/json', $request->headers('CONTENT_TYPE')); + } + private function getTestServer($config = array()) { $storage = Bootstrap::getInstance()->getMemoryStorage(); |