Skip to content

Commit 5b5fdf9

Browse files
ISSUE #1557: Fix A LineString must be composed of at least 2 points
1 parent 8af2ca1 commit 5b5fdf9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace App\Tests\Domain\Activity\Stream;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
class ActivityStreamTest extends TestCase
8+
{
9+
public function testApplySimpleMovingAverage(): void
10+
{
11+
$activityStream = ActivityStreamBuilder::fromDefaults()
12+
->withData([])
13+
->build();
14+
15+
$this->assertEquals(
16+
$activityStream,
17+
$activityStream->applySimpleMovingAverage(10),
18+
);
19+
}
20+
}

0 commit comments

Comments
 (0)