From 896877f1af0d76fc1fb8629510edfdc6c53ad73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ch=C3=A1bek?= Date: Fri, 26 Jun 2020 20:18:22 +0200 Subject: [PATCH] tmp cr fixes --- tests/Transport/ApiSnmpClientTest.php | 10 +++++----- tests/Transport/ValueParserTest.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Transport/ApiSnmpClientTest.php b/tests/Transport/ApiSnmpClientTest.php index 84fdde1..f075fc6 100644 --- a/tests/Transport/ApiSnmpClientTest.php +++ b/tests/Transport/ApiSnmpClientTest.php @@ -187,12 +187,12 @@ static function (RequestInterface $request) : bool { public function testThatParametersAreCorrectlyPropagatedToTheJsonRequest() : void { $this->client = $this->createMock(Client::class); - $psr71Factory = new Psr17Factory(); + $psr17Factory = new Psr17Factory(); $apiSnmp = new ApiSnmpClient( $this->client, - $psr71Factory, - $psr71Factory, + $psr17Factory, + $psr17Factory, 'http://somewhere', 'lorem', 'ipsum', @@ -300,9 +300,9 @@ public function testWalkWithUnexpectedError() : void private function createApiSnmp() : ApiSnmpClient { $this->client = $this->createMock(Client::class); - $psr71Factory = new Psr17Factory(); + $psr17Factory = new Psr17Factory(); - return new ApiSnmpClient($this->client, $psr71Factory, $psr71Factory, 'http://localhost'); + return new ApiSnmpClient($this->client, $psr17Factory, $psr17Factory, 'http://localhost'); } private function createResponse(string $body) : ResponseInterface diff --git a/tests/Transport/ValueParserTest.php b/tests/Transport/ValueParserTest.php index cb12a1c..d28500e 100644 --- a/tests/Transport/ValueParserTest.php +++ b/tests/Transport/ValueParserTest.php @@ -20,7 +20,7 @@ public function testParse(string $raw, $expected) : void self::assertSame($expected, ValueParser::parse($raw)); } - /** @return iterable */ + /** @return iterable> */ public function providerParse() : iterable { yield 'Counter64' => ['Counter64: 123456', '123456'];