Code Duplication    Length = 11-11 lines in 2 locations

tests/unit/Adapter/SqsAdapterTest.php 1 location

@@ 44-54 (lines=11) @@
41
    /** @var SqsClient */
42
    private $client;
43
44
    public function setUp()
45
    {
46
        $this->client = m::mock(SqsClient::class);
47
        $this->model = m::mock(ResultInterface::class);
48
        $this->factory = m::mock(MessageFactoryInterface::class);
49
50
        $this->messageA = $a = m::mock(MessageInterface::class);
51
        $this->messageB = $b = m::mock(MessageInterface::class);
52
        $this->messageC = $c = m::mock(MessageInterface::class);
53
        $this->messages = [$a, $b, $c];
54
    }
55
56
    /**
57
     * @param string $body

tests/unit/Adapter/FirehoseAdapterTest.php 1 location

@@ 44-54 (lines=11) @@
41
    /** @var FirehoseClient */
42
    private $client;
43
44
    public function setUp()
45
    {
46
        $this->client = m::mock(FirehoseClient::class);
47
        $this->model = m::mock(ResultInterface::class);
48
        $this->factory = m::mock(MessageFactoryInterface::class);
49
50
        $this->messageA = $a = m::mock(MessageInterface::class);
51
        $this->messageB = $b = m::mock(MessageInterface::class);
52
        $this->messageC = $c = m::mock(MessageInterface::class);
53
        $this->messages = [$a, $b, $c];
54
    }
55
56
    public function testInterface()
57
    {