Code Duplication    Length = 23-23 lines in 2 locations

src/OSS/CoreBundle/Tests/Entity/PlayerSkillsTest.php 2 locations

@@ 159-181 (lines=23) @@
156
        $this->assertEquals(100, $this->playerSkills->getDribbling());
157
    }
158
    
159
    public function testIncreaseValuesUnderLimit()
160
    {
161
        $this->playerSkills->increaseTackling(-1);
162
        $this->assertEquals(1, $this->playerSkills->getTackling());
163
        $this->playerSkills->increasePassing(-1);
164
        $this->assertEquals(1, $this->playerSkills->getPassing());
165
        $this->playerSkills->increaseShooting(-1);
166
        $this->assertEquals(1, $this->playerSkills->getShooting());
167
        $this->playerSkills->increaseHeading(-1);
168
        $this->assertEquals(1, $this->playerSkills->getHeading());
169
        $this->playerSkills->increaseSpeed(-1);
170
        $this->assertEquals(1, $this->playerSkills->getSpeed());
171
        $this->playerSkills->increaseCrossing(-1);
172
        $this->assertEquals(1, $this->playerSkills->getCrossing());
173
        $this->playerSkills->increaseTechnics(-1);
174
        $this->assertEquals(1, $this->playerSkills->getTechnics());
175
        $this->playerSkills->increaseIntelligence(-1);
176
        $this->assertEquals(1, $this->playerSkills->getIntelligence());
177
        $this->playerSkills->increaseSafety(-1);
178
        $this->assertEquals(1, $this->playerSkills->getSafety());
179
        $this->playerSkills->increaseDribbling(-1);
180
        $this->assertEquals(1, $this->playerSkills->getDribbling());
181
    }
182
183
    public function testDecreaseValues()
184
    {
@@ 217-239 (lines=23) @@
214
        $this->assertEquals(40, $this->playerSkills->getDribbling());
215
    }
216
    
217
    public function testDecreaseValuesOverLimit()
218
    {
219
        $this->playerSkills->decreaseTackling(-100);
220
        $this->assertEquals(100, $this->playerSkills->getTackling());
221
        $this->playerSkills->decreasePassing(-100);
222
        $this->assertEquals(100, $this->playerSkills->getPassing());
223
        $this->playerSkills->decreaseShooting(-100);
224
        $this->assertEquals(100, $this->playerSkills->getShooting());
225
        $this->playerSkills->decreaseHeading(-100);
226
        $this->assertEquals(100, $this->playerSkills->getHeading());
227
        $this->playerSkills->decreaseSpeed(-100);
228
        $this->assertEquals(100, $this->playerSkills->getSpeed());
229
        $this->playerSkills->decreaseCrossing(-100);
230
        $this->assertEquals(100, $this->playerSkills->getCrossing());
231
        $this->playerSkills->decreaseTechnics(-100);
232
        $this->assertEquals(100, $this->playerSkills->getTechnics());
233
        $this->playerSkills->decreaseIntelligence(-100);
234
        $this->assertEquals(100, $this->playerSkills->getIntelligence());
235
        $this->playerSkills->decreaseSafety(-100);
236
        $this->assertEquals(100, $this->playerSkills->getSafety());
237
        $this->playerSkills->decreaseDribbling(-100);
238
        $this->assertEquals(100, $this->playerSkills->getDribbling());
239
    }
240
241
    public function testDecreaseValuesUnderLimit()
242
    {