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