version 1.5

This commit is contained in:
Johannes Holzwarth | SE-Inno GmbH committed 2024-01-11 14:04:25 +01:00
1 parent 0ee8291846
commit 4492763b78
756 files changed
+209957 -2

No files matched your search

@@ -0,0 +1,24 @@
<?php
namespace Http\Discovery\Strategy;
use Http\Client\HttpAsyncClient;
use Http\Client\HttpClient;
use Http\Mock\Client as Mock;
/**
* Find the Mock client.
*
* @author Sam Rapaport <me@samrapdev.com>
*/
final class MockClientStrategy implements DiscoveryStrategy
{
public static function getCandidates($type)
{
if (is_a(HttpClient::class, $type, true) || is_a(HttpAsyncClient::class, $type, true)) {
return [['class' => Mock::class, 'condition' => Mock::class]];
}
return [];
}
}