@@ 79-83 (lines=5) @@ | ||
76 | if ($result->isFailure()) { |
|
77 | foreach ($result->getMessages() as $ruleLKey => $message) { |
|
78 | $identifier = 'smoke_' . $ruleLKey . '_' . $result->getUrl(); |
|
79 | if ($this->system == "") { |
|
80 | $system = str_replace("http://", "", $result->getUrl()); |
|
81 | } else { |
|
82 | $system = $this->system; |
|
83 | } |
|
84 | $this->send($identifier, $system, 'smoke', $message, self::STATUS_FAILURE, (string)$result->getUrl()); |
|
85 | $failedTests[] = $ruleLKey; |
|
86 | } |
|
@@ 91-95 (lines=5) @@ | ||
88 | foreach ($rules as $rule) { |
|
89 | if (!in_array($rule, $failedTests, true)) { |
|
90 | $identifier = 'smoke_' . $rule . '_' . $result->getUrl(); |
|
91 | if ($this->system == "") { |
|
92 | $system = str_replace("http://", "", $result->getUrl()); |
|
93 | } else { |
|
94 | $system = $this->system; |
|
95 | } |
|
96 | $this->send($identifier, $system, 'smoke_' . $rule, '', self::STATUS_SUCCESS, (string)$result->getUrl()); |
|
97 | } |
|
98 | } |