Code Duplication    Length = 11-11 lines in 2 locations

tests/unit/Adapter/FirehoseAdapterTest.php 1 location

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

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