ReplyAggregatorTest::testReplies()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace TheAentMachine;
4
5
use PHPUnit\Framework\TestCase;
6
use TheAentMachine\Helper\ReplyAggregator;
7
8
class ReplyAggregatorTest extends TestCase
9
{
10
    public function testReplies(): void
11
    {
12
        $replyAggregator = new ReplyAggregator();
13
        $replyAggregator->clear();
14
        $replyAggregator->storeReply('foo');
15
        $replyAggregator->storeReply('bar');
16
        $this->assertEquals(['foo', 'bar'], $replyAggregator->getReplies());
17
        $replyAggregator->clear();
18
        $this->assertEquals([], $replyAggregator->getReplies());
19
    }
20
}
21