Skip to content

Commit 9080c21

Browse files
committed
Removed tests due final methods
1 parent 2decfb5 commit 9080c21

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

spec/HttpClientPool/LeastUsedClientPoolSpec.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,4 @@ public function it_reenable_client(HttpClient $client, RequestInterface $request
6969
$this->shouldThrow('Http\Client\Exception\HttpException')->duringSendRequest($request);
7070
$this->shouldThrow('Http\Client\Exception\HttpException')->duringSendRequest($request);
7171
}
72-
73-
public function it_uses_the_lowest_request_client(HttpClientPoolItem $client1, HttpClientPoolItem $client2, RequestInterface $request, ResponseInterface $response)
74-
{
75-
if (extension_loaded('xdebug')) {
76-
throw new SkippingException('This test fail when xdebug is enable on PHP < 7');
77-
}
78-
79-
$this->addHttpClient($client1);
80-
$this->addHttpClient($client2);
81-
82-
$client1->getSendingRequestCount()->willReturn(10);
83-
$client2->getSendingRequestCount()->willReturn(2);
84-
85-
$client1->isDisabled()->willReturn(false);
86-
$client2->isDisabled()->willReturn(false);
87-
88-
$client1->sendRequest($request)->shouldNotBeCalled();
89-
$client2->sendRequest($request)->willReturn($response);
90-
91-
$this->sendRequest($request)->shouldReturn($response);
92-
}
9372
}

0 commit comments

Comments
 (0)