diff --git a/composer.json b/composer.json index f338262a..0de8ab51 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "PHP binding for v4 of the Cloudflare Client API.", "type": "library", "require": { - "guzzlehttp/guzzle": "^7.0.1", + "guzzlehttp/guzzle": "^6.3 || ^7.0.1", "php": ">=7.3", "psr/http-message": "~1.0", "ext-json": "*" diff --git a/tests/Endpoints/KeyValueTest.php b/tests/Endpoints/KeyValueTest.php index 8703cb4d..10aec18d 100644 --- a/tests/Endpoints/KeyValueTest.php +++ b/tests/Endpoints/KeyValueTest.php @@ -36,13 +36,11 @@ public function testListKeys() $this->assertEquals(self::TEST_KEY_NAME, $result->result[0]->name); $this->assertEquals(1, $result->result_info->count); } - public function testGetKeyValue() { $stream = $this->getPsr7StreamForFixture('Endpoints/getKeyValue.txt'); $adapter = $this->getMockBuilder(Adapter::class)->disableOriginalConstructor()->getMock(); $adapter->method('get')->willReturn(new Response(200, ['Content-Type' => 'application/json'], $stream)); - $adapter->expects($this->once()) ->method('get') ->with($this->stringStartsWith(sprintf('accounts/%s/storage/kv/namespaces/%s/values', self::TEST_ACCOUNT_ID, self::TEST_KV_NAMESPACE_ID)));