We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6a32ca + cc0defa commit 8d64f41Copy full SHA for 8d64f41
test/lib/xTest.php
@@ -120,10 +120,6 @@ public function run(xTestRunner $testRunner)
120
121
}
122
123
- if (is_null($this->result) && !(($exception instanceof xTestException) && $exception->getCode() == xTestException::FAIL)) {
124
- $this->result = (string)$exception;
125
- }
126
-
127
$count++;
128
129
if ($this->result === true) {
@@ -155,6 +151,9 @@ public function run(xTestRunner $testRunner)
155
151
private function assertException(\Exception $e = null)
156
152
{
157
153
if (!is_string($this->expectedException)) {
154
+ if ($e && !(($e instanceof xTestException) && $e->getCode() == xTestException::FAIL)) {
+ $this->result = (string)$e;
+ }
158
return;
159
160
0 commit comments