function exitWithCode() { TestEnv::removeBackupConfig(); if ($this->hasFailures()) { exit(1); // non-zero signals execution failure to anyone running this script } else { exit(0); // the UNIX success code -- all-clear } }