diff --git tests/phpunit/includes/bootstrap.php tests/phpunit/includes/bootstrap.php
index 1450736fd1..dfed144bfb 100644
|
|
class WP_PHPUnit_Util_Getopt extends PHPUnit_Util_Getopt { |
132 | 132 | function __construct( $argv ) { |
133 | 133 | array_shift( $argv ); |
134 | 134 | $options = array(); |
135 | | while ( list( $i, $arg ) = each( $argv ) ) { |
| 135 | while ( $arg = current( $argv ) ) { |
| 136 | next($argv); |
136 | 137 | try { |
137 | 138 | if ( strlen( $arg ) > 1 && $arg[0] === '-' && $arg[1] === '-' ) { |
138 | 139 | PHPUnit_Util_Getopt::parseLongOption( substr( $arg, 2 ), $this->longOptions, $options, $argv ); |