Skip to content

Commit

Permalink
CS/WS
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Jan 21, 2019
1 parent 0b7b618 commit 4c036ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Framework/TestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,15 @@ public function run(TestResult $result = null): TestResult

try {
foreach ($hookMethods['afterClass'] as $afterClassMethod) {
if ($this->testCase === true && \class_exists($this->name, false) && \method_exists($this->name,
$afterClassMethod)) {
if ($this->testCase === true && \class_exists($this->name, false) && \method_exists(
$this->name,
$afterClassMethod
)) {
\call_user_func([$this->name, $afterClassMethod]);
}
}
} catch(Throwable $t) {
trigger_error($t->__toString(), E_USER_WARNING);
} catch (Throwable $t) {
\trigger_error($t->__toString(), \E_USER_WARNING);
}

$this->tearDown();
Expand Down

0 comments on commit 4c036ef

Please sign in to comment.