Code Duplication    Length = 7-7 lines in 8 locations

src/OSS/CoreBundle/Tests/Transfer/ScoreCalculatorTest.php 8 locations

@@ 82-88 (lines=7) @@
79
        $this->assertEquals(50, $this->scoreCalculator->calculateBuyScore($this->player));
80
    }
81
82
    public function testCalculateSkillMoney2()
83
    {
84
        $this->scoreCalculator->getManager()->getTeam()->setMoney(500000000);
85
        $this->scoreCalculator->getManager()->setMoneyBehaviour(Manager::MONEY_BEHAVIOUR_DEFENSIVE);
86
        $this->player->getSkills()->setAll(100);
87
        $this->assertEquals(25, $this->scoreCalculator->calculateBuyScore($this->player));
88
    }
89
90
    public function testCalculateSkillMoney3()
91
    {
@@ 90-96 (lines=7) @@
87
        $this->assertEquals(25, $this->scoreCalculator->calculateBuyScore($this->player));
88
    }
89
90
    public function testCalculateSkillMoney3()
91
    {
92
        $this->scoreCalculator->getManager()->getTeam()->setMoney(2000000000);
93
        $this->scoreCalculator->getManager()->setMoneyBehaviour(Manager::MONEY_BEHAVIOUR_DEFENSIVE);
94
        $this->player->getSkills()->setAll(100);
95
        $this->assertEquals(100, $this->scoreCalculator->calculateBuyScore($this->player));
96
    }
97
98
    public function testCalculateSkillMoney4()
99
    {
@@ 98-104 (lines=7) @@
95
        $this->assertEquals(100, $this->scoreCalculator->calculateBuyScore($this->player));
96
    }
97
98
    public function testCalculateSkillMoney4()
99
    {
100
        $this->scoreCalculator->getManager()->getTeam()->setMoney(500000000);
101
        $this->scoreCalculator->getManager()->setMoneyBehaviour(Manager::MONEY_BEHAVIOUR_OFFENSIVE);
102
        $this->player->getSkills()->setAll(100);
103
        $this->assertEquals(100, $this->scoreCalculator->calculateBuyScore($this->player));
104
    }
105
106
    public function testCalculateSkillMoney5()
107
    {
@@ 106-112 (lines=7) @@
103
        $this->assertEquals(100, $this->scoreCalculator->calculateBuyScore($this->player));
104
    }
105
106
    public function testCalculateSkillMoney5()
107
    {
108
        $this->scoreCalculator->getManager()->getTeam()->setMoney(2000000000);
109
        $this->scoreCalculator->getManager()->setMoneyBehaviour(Manager::MONEY_BEHAVIOUR_OFFENSIVE);
110
        $this->player->getSkills()->setAll(100);
111
        $this->assertEquals(400, $this->scoreCalculator->calculateBuyScore($this->player));
112
    }
113
114
    public function testCalculateSkillMoneySell1()
115
    {
@@ 121-127 (lines=7) @@
118
        $this->assertEquals(400, $this->scoreCalculator->calculateSellScore($this->player));
119
    }
120
121
    public function testCalculateSkillMoneySell2()
122
    {
123
        $this->scoreCalculator->getManager()->getTeam()->setMoney(500000000);
124
        $this->scoreCalculator->getManager()->setMoneyBehaviour(Manager::MONEY_BEHAVIOUR_DEFENSIVE);
125
        $this->player->getSkills()->setAll(100);
126
        $this->assertEquals(800, $this->scoreCalculator->calculateSellScore($this->player));
127
    }
128
129
    public function testCalculateSkillMoneySell3()
130
    {
@@ 129-135 (lines=7) @@
126
        $this->assertEquals(800, $this->scoreCalculator->calculateSellScore($this->player));
127
    }
128
129
    public function testCalculateSkillMoneySell3()
130
    {
131
        $this->scoreCalculator->getManager()->getTeam()->setMoney(2000000000);
132
        $this->scoreCalculator->getManager()->setMoneyBehaviour(Manager::MONEY_BEHAVIOUR_DEFENSIVE);
133
        $this->player->getSkills()->setAll(100);
134
        $this->assertEquals(200, $this->scoreCalculator->calculateSellScore($this->player));
135
    }
136
137
    public function testCalculateSkillMoneySell4()
138
    {
@@ 137-143 (lines=7) @@
134
        $this->assertEquals(200, $this->scoreCalculator->calculateSellScore($this->player));
135
    }
136
137
    public function testCalculateSkillMoneySell4()
138
    {
139
        $this->scoreCalculator->getManager()->getTeam()->setMoney(500000000);
140
        $this->scoreCalculator->getManager()->setMoneyBehaviour(Manager::MONEY_BEHAVIOUR_OFFENSIVE);
141
        $this->player->getSkills()->setAll(100);
142
        $this->assertEquals(200, $this->scoreCalculator->calculateSellScore($this->player));
143
    }
144
145
    public function testCalculateSkillMoneySell5()
146
    {
@@ 145-151 (lines=7) @@
142
        $this->assertEquals(200, $this->scoreCalculator->calculateSellScore($this->player));
143
    }
144
145
    public function testCalculateSkillMoneySell5()
146
    {
147
        $this->scoreCalculator->getManager()->getTeam()->setMoney(2000000000);
148
        $this->scoreCalculator->getManager()->setMoneyBehaviour(Manager::MONEY_BEHAVIOUR_OFFENSIVE);
149
        $this->player->getSkills()->setAll(100);
150
        $this->assertEquals(50, $this->scoreCalculator->calculateSellScore($this->player));
151
    }
152
153
    public function testCalculateSellWithLessThan11Players()
154
    {