Skip to content

Commit

Permalink
Merge pull request #5 from sabirovruslan/master
Browse files Browse the repository at this point in the history
Добавлен вызов метода tearDown после успешного прохождения теста
  • Loading branch information
sokolovsky committed Jul 6, 2017
2 parents a3c89bf + 80fcaf0 commit 178f52b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cases/caseinvoker.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ private function runTest(BaseCase $case, CaseTestMethod $method, TestReportResul
} else {
$result->setResult(TestReportResult::RESULT_ERROR, "Expected exception `{$method->getExpectedException()}`");
}
$case->tearDown();
} catch (AssertionException $e) {
$result->setResult(TestReportResult::RESULT_ERROR, $e->getMessage());
$case->tearDown();
Expand Down

0 comments on commit 178f52b

Please sign in to comment.