| @@ 70-81 (lines=12) @@ | ||
| 67 | * @param Warning $e |
|
| 68 | * @param float $time |
|
| 69 | */ |
|
| 70 | public function addWarning(Test $test, Warning $e, $time) |
|
| 71 | { |
|
| 72 | $this->writeCase( |
|
| 73 | 'warning', |
|
| 74 | $time, |
|
| 75 | Util\Filter::getFilteredStacktrace($e, false), |
|
| 76 | TestFailure::exceptionToString($e), |
|
| 77 | $test |
|
| 78 | ); |
|
| 79 | ||
| 80 | $this->currentTestPass = false; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * A failure occurred. |
|
| @@ 90-101 (lines=12) @@ | ||
| 87 | * @param AssertionFailedError $e |
|
| 88 | * @param float $time |
|
| 89 | */ |
|
| 90 | public function addFailure(Test $test, AssertionFailedError $e, $time) |
|
| 91 | { |
|
| 92 | $this->writeCase( |
|
| 93 | 'fail', |
|
| 94 | $time, |
|
| 95 | Util\Filter::getFilteredStacktrace($e, false), |
|
| 96 | TestFailure::exceptionToString($e), |
|
| 97 | $test |
|
| 98 | ); |
|
| 99 | ||
| 100 | $this->currentTestPass = false; |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * Incomplete test. |
|
| @@ 110-121 (lines=12) @@ | ||
| 107 | * @param \Exception $e |
|
| 108 | * @param float $time |
|
| 109 | */ |
|
| 110 | public function addIncompleteTest(Test $test, \Exception $e, $time) |
|
| 111 | { |
|
| 112 | $this->writeCase( |
|
| 113 | 'error', |
|
| 114 | $time, |
|
| 115 | Util\Filter::getFilteredStacktrace($e, false), |
|
| 116 | 'Incomplete Test: ' . $e->getMessage(), |
|
| 117 | $test |
|
| 118 | ); |
|
| 119 | ||
| 120 | $this->currentTestPass = false; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Risky test. |
|
| @@ 130-141 (lines=12) @@ | ||
| 127 | * @param \Exception $e |
|
| 128 | * @param float $time |
|
| 129 | */ |
|
| 130 | public function addRiskyTest(Test $test, \Exception $e, $time) |
|
| 131 | { |
|
| 132 | $this->writeCase( |
|
| 133 | 'error', |
|
| 134 | $time, |
|
| 135 | Util\Filter::getFilteredStacktrace($e, false), |
|
| 136 | 'Risky Test: ' . $e->getMessage(), |
|
| 137 | $test |
|
| 138 | ); |
|
| 139 | ||
| 140 | $this->currentTestPass = false; |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| 144 | * Skipped test. |
|
| @@ 150-161 (lines=12) @@ | ||
| 147 | * @param \Exception $e |
|
| 148 | * @param float $time |
|
| 149 | */ |
|
| 150 | public function addSkippedTest(Test $test, \Exception $e, $time) |
|
| 151 | { |
|
| 152 | $this->writeCase( |
|
| 153 | 'error', |
|
| 154 | $time, |
|
| 155 | Util\Filter::getFilteredStacktrace($e, false), |
|
| 156 | 'Skipped Test: ' . $e->getMessage(), |
|
| 157 | $test |
|
| 158 | ); |
|
| 159 | ||
| 160 | $this->currentTestPass = false; |
|
| 161 | } |
|
| 162 | ||
| 163 | /** |
|
| 164 | * A testsuite started. |
|