Skip to content

Commit

Permalink
renamed cli innert testing param (#21)
Browse files Browse the repository at this point in the history
* renamed cli innert testing param

* Some refinement
  • Loading branch information
emulgeator authored Nov 13, 2017
1 parent 4612fa2 commit d7dea8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Bootstrap/BootstrapAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ abstract class BootstrapAbstract

/** Name of the GET param which indicates if testing mode should be used. */
const GET_PARAM_NAME_TESTING_MODE = 'isTestingMode';
/** Name of the CLI param which indicates if testing mode should be used. */
const CLI_PARAM_NAME_TESTING_MODE = 'is-inner-testing';


/**
* Indicates if the current run is an internal test.
Expand Down Expand Up @@ -128,7 +131,7 @@ protected function setTestingMode()
*/
protected function checkIfCliIsTested()
{
return !empty($_SERVER['argv']) && in_array('--isInnerTesting', $_SERVER['argv']);
return !empty($_SERVER['argv']) && in_array('--' . self::CLI_PARAM_NAME_TESTING_MODE, $_SERVER['argv']);
}

/**
Expand Down

0 comments on commit d7dea8b

Please sign in to comment.