Merge branch '2015.11-develop' into 2016.11
[tine20] / tests / tine20 / Tinebase / Server / JsonTests.php
index bfe547a..f8e02e1 100644 (file)
@@ -118,20 +118,19 @@ class Tinebase_Server_JsonTests extends TestCase
         $coreSession->jsonKey = $jsonkey;
 
         $server = new Tinebase_Server_Json();
-        $request = \Zend\Http\PhpEnvironment\Request::fromString(<<<EOS
-POST /index.php?requestType=JSON HTTP/1.1\r
-Host: localhost\r
-User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120824 Thunderbird/15.0 Lightning/1.7\r
-Content-Type: application/json\r
-X-Tine20-Transactionid: 18da265bc0eb66a36081bfd42689c1675ed68bab\r
-X-Requested-With: XMLHttpRequest\r
-Accept: */*\r
-Referer: http://tine20.vagrant/\r
-Accept-Encoding: gzip, deflate\r
-Accept-Language: en-US,en;q=0.8,de-DE;q=0.6,de;q=0.4\r
-\r
-{"jsonrpc":"2.0","method":"Inventory.searchInventoryItems","params":{"filter":[], "paging":{}},"id":6}
-EOS
+        $request = \Zend\Http\PhpEnvironment\Request::fromString(
+'POST /index.php?requestType=JSON HTTP/1.1' . "\r\n"
+. 'Host: localhost' . "\r\n"
+. 'User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120824 Thunderbird/15.0 Lightning/1.7' . "\r\n"
+. 'Content-Type: application/json' . "\r\n"
+. 'X-Tine20-Transactionid: 18da265bc0eb66a36081bfd42689c1675ed68bab' . "\r\n"
+. 'X-Requested-With: XMLHttpRequest' . "\r\n"
+. 'Accept: */*' . "\r\n"
+. 'Referer: http://tine20.vagrant/' . "\r\n"
+. 'Accept-Encoding: gzip, deflate' . "\r\n"
+. 'Accept-Language: en-US,en;q=0.8,de-DE;q=0.6,de;q=0.4' . "\r\n"
+. "\r\n"
+. '{"jsonrpc":"2.0","method":"Inventory.searchInventoryItems","params":{"filter":[], "paging":{}},"id":6}' . "\r\n"
         );
         ob_start();
         $server->handle($request);