From 93169eca1e754bf9a91599f7a7a84e461cfd974f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 11 Jun 2014 01:20:09 +0200 Subject: also handle lowercase headers --- tests/lib/appframework/controller/ControllerTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/lib/appframework/controller/ControllerTest.php') diff --git a/tests/lib/appframework/controller/ControllerTest.php b/tests/lib/appframework/controller/ControllerTest.php index 1a09925ef69..e97ec548939 100644 --- a/tests/lib/appframework/controller/ControllerTest.php +++ b/tests/lib/appframework/controller/ControllerTest.php @@ -185,4 +185,13 @@ class ControllerTest extends \PHPUnit_Framework_TestCase { } + public function testResponderAcceptHeaderParsedUpperCase() { + $responder = $this->controller->getResponderByHTTPHeader( + '*/*, apPlication/ToM, application/json' + ); + + $this->assertEquals('tom', $responder); + } + + } -- cgit v1.2.3