Skip to content

Commit

Permalink
Respect $exit parameter in command run
Browse files Browse the repository at this point in the history
  • Loading branch information
thePanz authored and sebastianbergmann committed Jan 25, 2017
1 parent 4c26be5 commit f4cf4d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TextUI/Command.php
Expand Up @@ -198,6 +198,11 @@ public function run(array $argv, $exit = true)
$return = PHPUnit_TextUI_TestRunner::EXCEPTION_EXIT;
}

// Respect the $exit parameter, and exit instead of returning.
if ($exit) {
exit($return);
}

return $return;
}

Expand Down

0 comments on commit f4cf4d1

Please sign in to comment.