Skip to content

Commit 27b776f

Browse files
author
Maxim Solovev
committed
add tests
1 parent d3fefda commit 27b776f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"matthiasnoback/symfony-dependency-injection-test": "^4.0 || ^5.0",
5353
"nyholm/nsa": "^1.1",
5454
"nyholm/psr7": "^1.2.1",
55+
"php-http/throttle-plugin": "^1.1",
5556
"php-http/cache-plugin": "^1.7",
5657
"php-http/mock-client": "^1.2",
5758
"php-http/promise": "^1.0",

tests/Unit/DependencyInjection/HttplugExtensionTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ public function testClientPlugins(): void
162162
'only_server_exception' => true,
163163
],
164164
],
165+
[
166+
'throttle' => [
167+
'name' => 'test',
168+
],
169+
],
165170
],
166171
],
167172
],
@@ -184,6 +189,7 @@ public function testClientPlugins(): void
184189
'httplug.client.acme.authentication.my_basic',
185190
'httplug.client.acme.plugin.cache',
186191
'httplug.client.acme.plugin.error',
192+
'httplug.client.acme.plugin.throttle',
187193
];
188194
$pluginReferences = array_map(function ($id) {
189195
return new Reference($id);

0 commit comments

Comments
 (0)