Skip to content

Commit

Permalink
More work on #3290
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 8, 2018
1 parent 6688c2f commit 8fbbd7f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions build/binary-phar-autoload.php.in
Expand Up @@ -21,10 +21,10 @@ if (__FILE__ === realpath($GLOBALS['_SERVER']['SCRIPT_NAME'])) {
$execute = false;
}

$options = getopt('', array('prepend-file:', 'manifest'));
$options = getopt('', array('prepend:', 'manifest'));

if (isset($options['prepend-file'])) {
require $options['prepend-file'];
if (isset($options['prepend'])) {
require $options['prepend'];
}

if (isset($options['manifest'])) {
Expand Down
6 changes: 3 additions & 3 deletions phpunit
Expand Up @@ -48,10 +48,10 @@ if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
die(1);
}

$options = getopt('', array('prepend-file:'));
$options = getopt('', array('prepend:'));

if (isset($options['prepend-file'])) {
require $options['prepend-file'];
if (isset($options['prepend'])) {
require $options['prepend'];
}

unset($options);
Expand Down
5 changes: 3 additions & 2 deletions src/TextUI/Command.php
Expand Up @@ -67,6 +67,7 @@ class Command
*/
protected $longOptions = [
'atleast-version=' => null,
'prepend=' => null,
'bootstrap=' => null,
'cache-result' => null,
'cache-result-file=' => null,
Expand Down Expand Up @@ -142,7 +143,6 @@ class Command
'version' => null,
'whitelist=' => null,
'dump-xdebug-filter=' => null,
'prepend-file=' => null,
];

/**
Expand Down Expand Up @@ -1164,7 +1164,8 @@ protected function showHelp(): void
Configuration Options:
--bootstrap <file> A "bootstrap" PHP file that is run before the tests
--prepend <file> A PHP script that is included as early as possible
--bootstrap <file> A PHP script that is included before the tests run
-c|--configuration <file> Read configuration from XML file
--no-configuration Ignore default configuration file (phpunit.xml)
--no-logging Ignore logging configuration
Expand Down
3 changes: 2 additions & 1 deletion tests/end-to-end/help.phpt
Expand Up @@ -94,7 +94,8 @@ Test Execution Options:

Configuration Options:

--bootstrap <file> A "bootstrap" PHP file that is run before the tests
--prepend <file> A PHP script that is included as early as possible
--bootstrap <file> A PHP script that is included before the tests run
-c|--configuration <file> Read configuration from XML file
--no-configuration Ignore default configuration file (phpunit.xml)
--no-logging Ignore logging configuration
Expand Down
3 changes: 2 additions & 1 deletion tests/end-to-end/help2.phpt
Expand Up @@ -95,7 +95,8 @@ Test Execution Options:

Configuration Options:

--bootstrap <file> A "bootstrap" PHP file that is run before the tests
--prepend <file> A PHP script that is included as early as possible
--bootstrap <file> A PHP script that is included before the tests run
-c|--configuration <file> Read configuration from XML file
--no-configuration Ignore default configuration file (phpunit.xml)
--no-logging Ignore logging configuration
Expand Down

0 comments on commit 8fbbd7f

Please sign in to comment.