Skip to content
Browse files

Fixed Undefined variable error when running all plugin tests

* Closes #559
  • Loading branch information...
1 parent 9d4b810 commit ff6060194487f14754dd8244840a8cce783fbf0e @ginatrapani ginatrapani committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/all_plugin_tests.php
View
6 tests/all_plugin_tests.php
@@ -86,6 +86,8 @@
$tr = new TextReporter();
$plugin_tests->run( $tr );
if (isset($RUNNING_ALL_TESTS) && $RUNNING_ALL_TESTS) {
- $TOTAL_PASSES = $TOTAL_PASSES + $tr->getPassCount();
- $TOTAL_FAILURES = $TOTAL_FAILURES + $tr->getFailCount();
+ if (isset($TOTAL_PASSES) && isset($TOTAL_FAILURES)) {
+ $TOTAL_PASSES = $TOTAL_PASSES + $tr->getPassCount();
+ $TOTAL_FAILURES = $TOTAL_FAILURES + $tr->getFailCount();
+ }
}

0 comments on commit ff60601

Please sign in to comment.
Something went wrong with that request. Please try again.