| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class BasicAuthClientSpec extends ObjectBehavior |
||
| 11 | { |
||
| 12 | public function setUp(HttpClient $httpClient) |
||
| 13 | { |
||
| 14 | $this->beConstructedWith($httpClient); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function it_is_initializable() |
||
| 18 | { |
||
| 19 | $this->shouldHaveType(BasicAuthClient::class); |
||
| 20 | $this->shouldHaveType(AbstractClient::class); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function it_should_create_client() |
||
| 24 | { |
||
| 25 | $this::create('username', 'password')->shouldReturnAnInstanceOf(BasicAuthClient::class); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function it_should_discover_http_client() |
||
| 29 | { |
||
| 30 | $this::create('username', 'password') |
||
| 31 | ->discoverHttpClient() |
||
| 32 | ->shouldReturnAnInstanceOf(HttpClient::class); |
||
| 33 | } |
||
| 35 |