@@ 87-102 (lines=16) @@ | ||
84 | $this->err(get_class($assertion) . ' - ' . $e->getMessage(), $this->createExtra($extra)); |
|
85 | } |
|
86 | ||
87 | public function createExtra($includeArray = []) |
|
88 | { |
|
89 | $defaultArray = [ |
|
90 | 'type' => 'message', |
|
91 | 'status' => $this->status, |
|
92 | 'name' => $this->testName, |
|
93 | 'test_id' => $this->testId, |
|
94 | 'test_run_id' => $this->getTestRunId() |
|
95 | ]; |
|
96 | ||
97 | if ($this->selectorConfig) { |
|
98 | $defaultArray = array_merge($this->selectorConfig, $defaultArray); |
|
99 | } |
|
100 | ||
101 | return array_merge($defaultArray, $includeArray); |
|
102 | } |
|
103 | ||
104 | public function getTestRunId() |
|
105 | { |
@@ 82-97 (lines=16) @@ | ||
79 | $this->err(get_class($assertion) . ' - ' . $e->getMessage(), $this->createExtra($extra)); |
|
80 | } |
|
81 | ||
82 | public function createExtra($includeArray = []) |
|
83 | { |
|
84 | $defaultArray = [ |
|
85 | 'type' => 'message', |
|
86 | 'status' => $this->status, |
|
87 | 'name' => $this->testName, |
|
88 | 'test_id' => $this->testId, |
|
89 | 'test_run_id' => $this->getTestRunId() |
|
90 | ]; |
|
91 | ||
92 | if ($this->selectorConfig) { |
|
93 | $defaultArray = array_merge($this->selectorConfig, $defaultArray); |
|
94 | } |
|
95 | ||
96 | return array_merge($defaultArray, $includeArray); |
|
97 | } |
|
98 | ||
99 | public function getTestRunId() |
|
100 | { |