Completed
Push — master ( b56704...b07206 )
by David
14s queued 10s
created

ReplyAggregatorTest::testReplies()   A

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 9.6666
c 0
b 0
f 0
1
<?php
2
3
namespace TheAentMachine;
4
5
use PHPUnit\Framework\TestCase;
6
7
class ReplyAggregatorTest extends TestCase
8
{
9
    public function testReplies(): void
10
    {
11
        $replyAggregator = new ReplyAggregator();
12
        $replyAggregator->clear();
13
        $replyAggregator->storeReply('foo');
14
        $replyAggregator->storeReply('bar');
15
        $this->assertEquals(['foo', 'bar'], $replyAggregator->getReplies());
16
        $replyAggregator->clear();
17
        $this->assertEquals([], $replyAggregator->getReplies());
18
    }
19
}
20