Skip to content

Commit 39f8463

Browse files
committed
test that mock client can discover a message factory
1 parent 86cc715 commit 39f8463

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
"phpspec/phpspec": "^5.1 || ^6.1 || ^7.3"
3535
},
3636
"config": {
37-
"sort-packages": true
37+
"sort-packages": true,
38+
"allow-plugins": {
39+
"php-http/discovery": false
40+
}
3841
},
3942
"autoload": {
4043
"psr-4": {

spec/ClientSpec.php

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ function let(ResponseFactoryInterface $responseFactory)
2222
function it_is_initializable()
2323
{
2424
$this->shouldHaveType(Client::class);
25+
26+
// make sure the client is also instantiable without arguments
27+
new Client();
2528
}
2629

2730
function it_is_an_http_client()

0 commit comments

Comments
 (0)