|
@@ 103-107 (lines=5) @@
|
| 100 |
|
foreach ($result->getMessages() as $ruleLKey => $message) { |
| 101 |
|
$identifier = 'smoke_' . $ruleLKey . '_' . $result->getUrl(); |
| 102 |
|
|
| 103 |
|
if ($this->system === '') { |
| 104 |
|
$system = str_replace('http://', '', $result->getUrl()); |
| 105 |
|
} else { |
| 106 |
|
$system = $this->system; |
| 107 |
|
} |
| 108 |
|
$this->send($identifier, $system, 'smoke', $message, self::STATUS_FAILURE, (string) $result->getUrl()); |
| 109 |
|
$failedTests[] = $ruleLKey; |
| 110 |
|
} |
|
@@ 116-120 (lines=5) @@
|
| 113 |
|
if (!in_array($rule, $failedTests, true)) { |
| 114 |
|
$identifier = 'smoke_' . $rule . '_' . $result->getUrl(); |
| 115 |
|
|
| 116 |
|
if ($this->system === '') { |
| 117 |
|
$system = str_replace('http://', '', $result->getUrl()); |
| 118 |
|
} else { |
| 119 |
|
$system = $this->system; |
| 120 |
|
} |
| 121 |
|
$this->send($identifier, $system, 'smoke_' . $rule, '', self::STATUS_SUCCESS, (string) $result->getUrl()); |
| 122 |
|
} |
| 123 |
|
} |