Make WordPress Core

Ticket #41525: 41525.patch

File 41525.patch, 652 bytes (added by ayeshrajans, 8 years ago)
  • tests/phpunit/includes/bootstrap.php

    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 { 
    132132        function __construct( $argv ) {
    133133                array_shift( $argv );
    134134                $options = array();
    135                 while ( list( $i, $arg ) = each( $argv ) ) {
     135                while ( $arg = current( $argv ) ) {
     136                  next($argv);
    136137                        try {
    137138                                if ( strlen( $arg ) > 1 && $arg[0] === '-' && $arg[1] === '-' ) {
    138139                                        PHPUnit_Util_Getopt::parseLongOption( substr( $arg, 2 ), $this->longOptions, $options, $argv );