1 | <?php |
||
10 | class InfluxDbEventTest extends \PHPUnit_Framework_TestCase |
||
11 | { |
||
12 | |||
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 | |||
22 | } |
||
23 |