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

ReplyAggregatorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testReplies() 0 9 1
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