Code Duplication    Length = 11-11 lines in 2 locations

Tests/Units/EventStore/EventStreamTests.php 2 locations

@@ 29-39 (lines=11) @@
26
    /**
27
     * Test StreamName method.
28
     */
29
    public function testStreamName()
30
    {
31
        $this
32
            ->given($postId = PostId::fromNative(md5(rand())))
33
            ->and($streamName = 'Posts-'.$postId)
34
            ->and($eventStream = new EventStream($streamName, $postId, []))
35
            ->then()
36
                ->string($eventStream->streamName())
37
                    ->isEqualTo($streamName)
38
        ;
39
    }
40
41
    /**
42
     * Test AggregateId method.
@@ 44-54 (lines=11) @@
41
    /**
42
     * Test AggregateId method.
43
     */
44
    public function testAggregateId()
45
    {
46
        $this
47
            ->given($postId = PostId::fromNative(md5(rand())))
48
            ->and($streamName = 'Posts-'.$postId)
49
            ->and($eventStream = new EventStream($streamName, $postId, []))
50
            ->then()
51
                ->object($eventStream->aggregateId())
52
                    ->isEqualTo($postId)
53
        ;
54
    }
55
56
    /**
57
     * Test Events method.