| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class BasicAuthClientTest extends TestCase |
||
| 12 | { |
||
| 13 | private $client; |
||
| 14 | |||
| 15 | public function setUp() |
||
| 16 | { |
||
| 17 | $this->client = BasicAuthClient::create('username', 'password'); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function testCreate() |
||
| 21 | { |
||
| 22 | $this->assertInstanceOf(AbstractClient::class, $this->client); |
||
| 23 | $this->assertInstanceOf(BasicAuthClientInterface::class, $this->client); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testDiscoverHttpClient() |
||
| 27 | { |
||
| 28 | $httpClient = $this->client->discoverHttpClient(); |
||
| 29 | $this->assertInstanceOf(HttpClient::class, $httpClient); |
||
| 30 | } |
||
| 32 |