|
@@ 148-155 (lines=8) @@
|
| 145 |
|
$this->assertNotEmpty($result);
|
| 146 |
|
$this->assertGreaterThanOrEqual(0, $result['goalAway']);
|
| 147 |
|
$this->assertGreaterThanOrEqual(0, $result['goalHome']);
|
| 148 |
|
if ($result['goalHome'] > 0) {
|
| 149 |
|
$this->assertNotEmpty($result['info']['scorers']['home']);
|
| 150 |
|
foreach ($result['info']['scorers']['home'] as $scorerHome) {
|
| 151 |
|
$this->assertEquals($scorerHome->team_id, $teamHome);
|
| 152 |
|
}
|
| 153 |
|
} else {
|
| 154 |
|
$this->assertEmpty($result['info']['scorers']['home']);
|
| 155 |
|
}
|
| 156 |
|
if ($result['goalAway'] > 0) {
|
| 157 |
|
$this->assertNotEmpty($result['info']['scorers']['away']);
|
| 158 |
|
foreach ($result['info']['scorers']['away'] as $scorerAway) {
|
|
@@ 156-163 (lines=8) @@
|
| 153 |
|
} else {
|
| 154 |
|
$this->assertEmpty($result['info']['scorers']['home']);
|
| 155 |
|
}
|
| 156 |
|
if ($result['goalAway'] > 0) {
|
| 157 |
|
$this->assertNotEmpty($result['info']['scorers']['away']);
|
| 158 |
|
foreach ($result['info']['scorers']['away'] as $scorerAway) {
|
| 159 |
|
$this->assertEquals($scorerAway->team_id, $teamAway);
|
| 160 |
|
}
|
| 161 |
|
} else {
|
| 162 |
|
$this->assertEmpty($result['info']['scorers']['away']);
|
| 163 |
|
}
|
| 164 |
|
if ($result['goalHome'] == $result['goalAway']) {
|
| 165 |
|
$this->assertTrue($result['info']['isDraw']);
|
| 166 |
|
} else {
|