Skip to content

Commit

Permalink
Default interpreter is CLI (BC break) [Closes nette#197]
Browse files Browse the repository at this point in the history
  • Loading branch information
milo committed May 16, 2016
1 parent 80ab717 commit 054304d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Runner/CliTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private function loadOptions()
tester.php [options] [<test file> | <directory>]...
Options:
-p <path> Specify PHP interpreter to run (default: php-cgi).
-p <path> Specify PHP interpreter to run (default: php).
-c <path> Look for php.ini file (or look in directory) <path>.
-l | --log <path> Write log to file <path>.
-d <key=value>... Define INI entry 'key' with value 'val'.
Expand Down Expand Up @@ -131,6 +131,10 @@ private function loadOptions()
unset($_SERVER['argv'][$tmp]);
$_SERVER['argv'] = array_merge($_SERVER['argv'], ['-o', 'tap']);
}

if (array_search('-p', $_SERVER['argv']) === FALSE) {
echo "Note: Default interpreter is CLI since Tester v2.0. It used to be CGI.\n";
}
}

$this->options = $cmd->parse();
Expand Down

0 comments on commit 054304d

Please sign in to comment.