chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
namespace Mautic\StatsBundle\Tests\Aggregate\Collection\Stats;
use Mautic\StatsBundle\Aggregate\Collection\Stats\HourStat;
use PHPUnit\Framework\TestCase;
class HourStatTest extends TestCase
{
public function testAll(): void
{
$hour = '2018-12-07 12';
$hourStat = new HourStat('2018-12-07 12');
$this->assertSame($hour, $hourStat->getHour());
// Counts
$this->assertSame(0, $hourStat->getCount());
$count = 1;
$hourStat->setCount($count);
$this->assertSame($count, $hourStat->getCount());
$count = 2;
$hourStat->setCount($count);
$this->assertSame($count, $hourStat->getCount());
}
}