From 659ec400ffe5ffcaa640719763d0e6338c80949f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1gi-Kaz=C3=A1r=20M=C3=A1rk?= Date: Wed, 4 Nov 2015 12:13:52 +0100 Subject: [PATCH] Reflect changes in the MessageFactory interface --- src/HttpAdapterTest.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/HttpAdapterTest.php b/src/HttpAdapterTest.php index 920d070..d192869 100644 --- a/src/HttpAdapterTest.php +++ b/src/HttpAdapterTest.php @@ -113,9 +113,9 @@ public function testSendRequest($method, $uri, array $headers, $body) $request = self::$messageFactory->createRequest( $method, $uri, - '1.1', $headers, - $body + $body, + '1.1' ); $response = $this->httpAdapter->sendRequest($request); @@ -146,9 +146,9 @@ public function testSendRequestWithOutcome($uriAndOutcome, $protocolVersion, arr $request = self::$messageFactory->createRequest( $method = 'GET', $uriAndOutcome[0], - $protocolVersion, $headers, - $body + $body, + $protocolVersion ); $response = $this->httpAdapter->sendRequest($request); @@ -172,8 +172,9 @@ public function testSendWithInvalidUri() $request = self::$messageFactory->createRequest( 'GET', $this->getInvalidUri(), - '1.1', - $this->defaultHeaders + $this->defaultHeaders, + null, + '1.1' ); $this->httpAdapter->sendRequest($request);