Skip to content

Commit 46c369a

Browse files
committed
Change method naming
1 parent e2e3b27 commit 46c369a

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
},
4545
"autoload-dev": {
4646
"psr-4": {
47+
"Test\\Integration\\Cog\\OpenTsdbClient\\": "test/Integration",
4748
"Test\\Unit\\Cog\\OpenTsdbClient\\": "test/Unit"
4849
}
4950
},

test/Integration/OpenTsdbClientTest.php

+26-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,32 @@
2020

2121
final class OpenTsdbClientTest extends TestCase
2222
{
23-
public function testSuccess(): void
23+
public function testSendDataPointList(): void
24+
{
25+
if ($_ENV['APP_ENV'] === 'ci') {
26+
$this->markTestSkipped('Only for development environment. Need to pull opentsdb container to GitHub.');
27+
}
28+
29+
$dataPointList[] = new DataPoint(
30+
metric: 'temperature',
31+
timestamp: 1,
32+
value: -38.04,
33+
tags: ['place' => 'south_pole'],
34+
);
35+
$dataPointList[] = new DataPoint(
36+
metric: 'temperature',
37+
timestamp: 1,
38+
value: -2.12,
39+
tags: ['place' => 'north_pole'],
40+
);
41+
42+
$openTsdbClient = $this->initOpenTsdbClient();
43+
44+
$openTsdbClient->sendDataPointList($dataPointList);
45+
$this->assertTrue(true);
46+
}
47+
48+
public function testSendDataPointListWithDebug(): void
2449
{
2550
if ($_ENV['APP_ENV'] === 'ci') {
2651
$this->markTestSkipped('Only for development environment. Need to pull opentsdb container to GitHub.');

0 commit comments

Comments
 (0)