Code Duplication    Length = 19-19 lines in 2 locations

Tests/Client/ClientCollectionTest.php 2 locations

@@ 92-110 (lines=19) @@
89
    /**
90
     * @test
91
     */
92
    public function testGetApnsClients()
93
    {
94
        $apnsClient1 = clone $this->apnsClient;
95
        $apnsClient2 = clone $this->apnsClient;
96
97
        $this->clientCollection
98
            ->addClient('apns-client-1', $apnsClient1)
99
            ->addClient('apns-client-2', $apnsClient2)
100
            ->addClient('gcm-client', $this->gcmClient)
101
            ->addClient('random-client', $this->client)
102
        ;
103
104
        $expectedCollection = (new ClientCollection())
105
            ->addClient('apns-client-1', $apnsClient1)
106
            ->addClient('apns-client-2', $apnsClient2)
107
        ;
108
109
        $this->assertEquals($expectedCollection, $this->clientCollection->getApnsClients());
110
    }
111
112
    /**
113
     * @test
@@ 115-133 (lines=19) @@
112
    /**
113
     * @test
114
     */
115
    public function testGetGcmClients()
116
    {
117
        $gcmClient1 = clone $this->gcmClient;
118
        $gcmClient2 = clone $this->gcmClient;
119
120
        $this->clientCollection
121
            ->addClient('gcm-client-1', $gcmClient1)
122
            ->addClient('gcm-client-2', $gcmClient2)
123
            ->addClient('apns-client', $this->apnsClient)
124
            ->addClient('random-client', $this->client)
125
        ;
126
127
        $expectedCollection = (new ClientCollection())
128
            ->addClient('gcm-client-1', $gcmClient1)
129
            ->addClient('gcm-client-2', $gcmClient2)
130
        ;
131
132
        $this->assertEquals($expectedCollection, $this->clientCollection->getGcmClients());
133
    }
134
}
135