1 | <?php |
||
9 | class ReaderClientTest extends \PHPUnit_Framework_TestCase |
||
10 | { |
||
11 | |||
12 | public function test_http_client_construction() |
||
13 | { |
||
14 | $factory = $this->prophesize(InfluxDbClientFactory::class); |
||
15 | $factory->buildHttpClient()->shouldBeCalledTimes(1); |
||
16 | |||
17 | $reader = new ReaderClient($factory->reveal()); |
||
18 | |||
19 | $this->assertInstanceOf(ReaderInterface::class, $reader); |
||
20 | } |
||
21 | |||
22 | } |
||
23 |