| @@ 41-52 (lines=12) @@ | ||
| 38 | * @param \Exception $e |
|
| 39 | * @param float $time |
|
| 40 | */ |
|
| 41 | public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) |
|
| 42 | { |
|
| 43 | $this->writeCase( |
|
| 44 | 'error', |
|
| 45 | $time, |
|
| 46 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 47 | \PHPUnit_Framework_TestFailure::exceptionToString($e), |
|
| 48 | $test |
|
| 49 | ); |
|
| 50 | ||
| 51 | $this->currentTestPass = false; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * A warning occurred. |
|
| @@ 61-72 (lines=12) @@ | ||
| 58 | * @param \PHPUnit_Framework_Warning $e |
|
| 59 | * @param float $time |
|
| 60 | */ |
|
| 61 | public function addWarning(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_Warning $e, $time) |
|
| 62 | { |
|
| 63 | $this->writeCase( |
|
| 64 | 'warning', |
|
| 65 | $time, |
|
| 66 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 67 | \PHPUnit_Framework_TestFailure::exceptionToString($e), |
|
| 68 | $test |
|
| 69 | ); |
|
| 70 | ||
| 71 | $this->currentTestPass = false; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * A failure occurred. |
|
| @@ 81-92 (lines=12) @@ | ||
| 78 | * @param \PHPUnit_Framework_AssertionFailedError $e |
|
| 79 | * @param float $time |
|
| 80 | */ |
|
| 81 | public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time) |
|
| 82 | { |
|
| 83 | $this->writeCase( |
|
| 84 | 'fail', |
|
| 85 | $time, |
|
| 86 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 87 | \PHPUnit_Framework_TestFailure::exceptionToString($e), |
|
| 88 | $test |
|
| 89 | ); |
|
| 90 | ||
| 91 | $this->currentTestPass = false; |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * Incomplete test. |
|
| @@ 101-112 (lines=12) @@ | ||
| 98 | * @param \Exception $e |
|
| 99 | * @param float $time |
|
| 100 | */ |
|
| 101 | public function addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) |
|
| 102 | { |
|
| 103 | $this->writeCase( |
|
| 104 | 'error', |
|
| 105 | $time, |
|
| 106 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 107 | 'Incomplete Test: ' . $e->getMessage(), |
|
| 108 | $test |
|
| 109 | ); |
|
| 110 | ||
| 111 | $this->currentTestPass = false; |
|
| 112 | } |
|
| 113 | ||
| 114 | /** |
|
| 115 | * Risky test. |
|
| @@ 121-132 (lines=12) @@ | ||
| 118 | * @param \Exception $e |
|
| 119 | * @param float $time |
|
| 120 | */ |
|
| 121 | public function addRiskyTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) |
|
| 122 | { |
|
| 123 | $this->writeCase( |
|
| 124 | 'error', |
|
| 125 | $time, |
|
| 126 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 127 | 'Risky Test: ' . $e->getMessage(), |
|
| 128 | $test |
|
| 129 | ); |
|
| 130 | ||
| 131 | $this->currentTestPass = false; |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * Skipped test. |
|
| @@ 141-152 (lines=12) @@ | ||
| 138 | * @param \Exception $e |
|
| 139 | * @param float $time |
|
| 140 | */ |
|
| 141 | public function addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) |
|
| 142 | { |
|
| 143 | $this->writeCase( |
|
| 144 | 'error', |
|
| 145 | $time, |
|
| 146 | \PHPUnit_Util_Filter::getFilteredStacktrace($e, false), |
|
| 147 | 'Skipped Test: ' . $e->getMessage(), |
|
| 148 | $test |
|
| 149 | ); |
|
| 150 | ||
| 151 | $this->currentTestPass = false; |
|
| 152 | } |
|
| 153 | ||
| 154 | /** |
|
| 155 | * A testsuite started. |
|