| @@ 50-61 (lines=12) @@ | ||
| 47 | * @param \Exception $e |
|
| 48 | * @param float $time |
|
| 49 | */ |
|
| 50 | public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) |
|
| 51 | { |
|
| 52 | $this->writeCase( |
|
| 53 | 'error', |
|
| 54 | $time, |
|
| 55 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 56 | \PHPUnit_Framework_TestFailure::exceptionToString($e), |
|
| 57 | $test |
|
| 58 | ); |
|
| 59 | ||
| 60 | $this->currentTestPass = false; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * A warning occurred. |
|
| @@ 70-81 (lines=12) @@ | ||
| 67 | * @param \PHPUnit_Framework_Warning $e |
|
| 68 | * @param float $time |
|
| 69 | */ |
|
| 70 | public function addWarning(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_Warning $e, $time) |
|
| 71 | { |
|
| 72 | $this->writeCase( |
|
| 73 | 'warning', |
|
| 74 | $time, |
|
| 75 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 76 | \PHPUnit_Framework_TestFailure::exceptionToString($e), |
|
| 77 | $test |
|
| 78 | ); |
|
| 79 | ||
| 80 | $this->currentTestPass = false; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * A failure occurred. |
|
| @@ 90-101 (lines=12) @@ | ||
| 87 | * @param \PHPUnit_Framework_AssertionFailedError $e |
|
| 88 | * @param float $time |
|
| 89 | */ |
|
| 90 | public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time) |
|
| 91 | { |
|
| 92 | $this->writeCase( |
|
| 93 | 'fail', |
|
| 94 | $time, |
|
| 95 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 96 | \PHPUnit_Framework_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(\PHPUnit_Framework_Test $test, \Exception $e, $time) |
|
| 111 | { |
|
| 112 | $this->writeCase( |
|
| 113 | 'error', |
|
| 114 | $time, |
|
| 115 | \PHPUnit_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(\PHPUnit_Framework_Test $test, \Exception $e, $time) |
|
| 131 | { |
|
| 132 | $this->writeCase( |
|
| 133 | 'error', |
|
| 134 | $time, |
|
| 135 | \PHPUnit_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(\PHPUnit_Framework_Test $test, \Exception $e, $time) |
|
| 151 | { |
|
| 152 | $this->writeCase( |
|
| 153 | 'error', |
|
| 154 | $time, |
|
| 155 | \PHPUnit_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. |
|