| @@ 30-44 (lines=15) @@ | ||
| 27 | parent::setUp(); |
|
| 28 | } |
|
| 29 | ||
| 30 | public function testReturnSectorGas() |
|
| 31 | { |
|
| 32 | $sectore = 'Energía'; |
|
| 33 | $gas = 'CO₂'; |
|
| 34 | $total = 888; |
|
| 35 | ||
| 36 | $inputArray[] = [ |
|
| 37 | 'sector' => $sectore, |
|
| 38 | 'gas' => $gas, |
|
| 39 | 'total' => $total, |
|
| 40 | ]; |
|
| 41 | ||
| 42 | $this->assertEquals(Utils::ReturnSectorGas($inputArray, $sectore, $gas), $total); |
|
| 43 | ||
| 44 | } |
|
| 45 | ||
| 46 | public function testReturnSectorAno() |
|
| 47 | { |
|
| @@ 46-59 (lines=14) @@ | ||
| 43 | ||
| 44 | } |
|
| 45 | ||
| 46 | public function testReturnSectorAno() |
|
| 47 | { |
|
| 48 | $sectore = 'Energía'; |
|
| 49 | $year = 2014; |
|
| 50 | $total = 888; |
|
| 51 | ||
| 52 | $inputArray[] = [ |
|
| 53 | 'sector' => $sectore, |
|
| 54 | 'year' => $year, |
|
| 55 | 'total' => $total, |
|
| 56 | ]; |
|
| 57 | ||
| 58 | $this->assertEquals(Utils::ReturnSectorAno($inputArray, $sectore, $year), $total); |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||