@@ 25-37 (lines=13) @@ | ||
22 | $this->playerSkills = null; |
|
23 | } |
|
24 | ||
25 | public function testBaseValues() |
|
26 | { |
|
27 | $this->assertEquals(1, $this->playerSkills->getTackling()); |
|
28 | $this->assertEquals(1, $this->playerSkills->getPassing()); |
|
29 | $this->assertEquals(1, $this->playerSkills->getShooting()); |
|
30 | $this->assertEquals(1, $this->playerSkills->getHeading()); |
|
31 | $this->assertEquals(1, $this->playerSkills->getSpeed()); |
|
32 | $this->assertEquals(1, $this->playerSkills->getCrossing()); |
|
33 | $this->assertEquals(1, $this->playerSkills->getTechnics()); |
|
34 | $this->assertEquals(1, $this->playerSkills->getIntelligence()); |
|
35 | $this->assertEquals(1, $this->playerSkills->getSafety()); |
|
36 | $this->assertEquals(1, $this->playerSkills->getDribbling()); |
|
37 | } |
|
38 | ||
39 | public function testSetValues() |
|
40 | { |
|
@@ 295-308 (lines=14) @@ | ||
292 | $this->assertEquals(15, $this->playerSkills->getAverage()); |
|
293 | } |
|
294 | ||
295 | public function testSetAll() |
|
296 | { |
|
297 | $this->playerSkills->setAll(10); |
|
298 | $this->assertEquals(10, $this->playerSkills->getTackling()); |
|
299 | $this->assertEquals(10, $this->playerSkills->getPassing()); |
|
300 | $this->assertEquals(10, $this->playerSkills->getShooting()); |
|
301 | $this->assertEquals(10, $this->playerSkills->getHeading()); |
|
302 | $this->assertEquals(10, $this->playerSkills->getSpeed()); |
|
303 | $this->assertEquals(10, $this->playerSkills->getCrossing()); |
|
304 | $this->assertEquals(10, $this->playerSkills->getTechnics()); |
|
305 | $this->assertEquals(10, $this->playerSkills->getIntelligence()); |
|
306 | $this->assertEquals(10, $this->playerSkills->getSafety()); |
|
307 | $this->assertEquals(10, $this->playerSkills->getDribbling()); |
|
308 | } |
|
309 | ||
310 | public function testSetAllTrainingValues() |
|
311 | { |