Skip to content

Commit ef7a84d

Browse files
committed
Minor fixes
1 parent a959281 commit ef7a84d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Collector/ProfileClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ProfileClient implements HttpClient, HttpAsyncClient
4747
private $eventNames = [];
4848

4949
/**
50-
* @param HttpClient|HttpAsyncClient $client The client to profile. Client must implement both HttpClient or
50+
* @param HttpClient|HttpAsyncClient $client The client to profile. Client must implement HttpClient or
5151
* HttpAsyncClient interface.
5252
* @param Collector $collector
5353
* @param Formatter $formatter

Tests/Functional/Issue206.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
namespace Http\HttplugBundle\Tests\Functional;
66

77
use Http\Client\Common\HttpMethodsClient;
8+
use Http\Client\Common\PluginClient;
89
use Http\Client\Common\PluginClientFactory;
910
use Http\Discovery\HttpClientDiscovery;
1011
use Http\Discovery\MessageFactoryDiscovery;
1112
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
12-
use Http\HttplugBundle\Collector\PluginClientFactory as DebugFactory;
1313

1414
class Issue206 extends WebTestCase
1515
{
@@ -22,5 +22,8 @@ public function testCustomClientStillAvailable()
2222
// Create a client
2323
$myCustomClient = new HttpMethodsClient(HttpClientDiscovery::find(), MessageFactoryDiscovery::find());
2424
$pluginClient = (new PluginClientFactory())->createClient($myCustomClient, []);
25+
26+
// If we get to this line, no exceptions has been thrown.
27+
$this->assertInstanceOf(PluginClient::class, $pluginClient);
2528
}
2629
}

0 commit comments

Comments
 (0)