Spaces:
No application file
No application file
File size: 557 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<?php
namespace Mautic\StatsBundle\Tests\Aggregate\Collection\Stats;
use Mautic\StatsBundle\Aggregate\Collection\Stats\WeekStat;
use PHPUnit\Framework\TestCase;
class WeekStatTest extends TestCase
{
public function testAll(): void
{
$weekStat = new WeekStat();
$this->assertSame(0, $weekStat->getCount());
$count = 1;
$weekStat->setCount($count);
$this->assertSame($count, $weekStat->getCount());
$weekStat->addToCount($count);
$this->assertSame($count * 2, $weekStat->getCount());
}
}
|