Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function test_event_interface() |
||
14 | { |
||
15 | $event = new InfluxDbEvent(new PointsCollection([1,2,3]), Database::PRECISION_SECONDS, ClientInterface::HTTP_CLIENT); |
||
16 | |||
17 | $this->assertEquals(new PointsCollection([1,2,3]), $event->getPoints()); |
||
18 | $this->assertEquals(ClientInterface::HTTP_CLIENT, $event->getWriteClient()); |
||
19 | $this->assertEquals(Database::PRECISION_SECONDS, $event->getPayload()); |
||
20 | } |
||
21 | |||
23 |