Code Duplication    Length = 13-13 lines in 2 locations

tests/Eole/Core/Service/PartyManagerTest.php 2 locations

@@ 213-225 (lines=13) @@
210
        $this->partyManager->addPlayer($party, $otherPlayer);
211
    }
212
213
    public function testStartParty()
214
    {
215
        $party = new Party();
216
217
        $party->setState(Party::PREPARATION);
218
219
        $this->partyManager->startParty($party);
220
221
        $this->assertEquals(Party::ACTIVE, $party->getState());
222
223
        $this->setExpectedException('RuntimeException');
224
        $this->partyManager->startParty($party);
225
    }
226
227
    public function testEndParty()
228
    {
@@ 227-239 (lines=13) @@
224
        $this->partyManager->startParty($party);
225
    }
226
227
    public function testEndParty()
228
    {
229
        $party = new Party();
230
231
        $party->setState(Party::ACTIVE);
232
233
        $this->partyManager->endParty($party);
234
235
        $this->assertEquals(Party::ENDED, $party->getState());
236
237
        $this->setExpectedException('RuntimeException');
238
        $this->partyManager->endParty($party);
239
    }
240
}
241