Completed
Push — master ( 95d836...63ebe6 )
by BENOIT
09:05
created

ClientMockTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A mockResponse() 0 4 1
1
<?php
2
3
namespace BenTools\Currency\Tests;
4
5
use GuzzleHttp\Psr7\Response;
6
use Http\Mock\Client;
7
8
trait ClientMockTrait
9
{
10
11
    /**
12
     * @var Client
13
     */
14
    protected $client;
15
16
    protected function mockResponse(string $content)
17
    {
18
        $this->client->addResponse(new Response(200, [], $content));
19
    }
20
}