Make WordPress Core

Ticket #41530: 41530.patch

File 41530.patch, 632 bytes (added by ayeshrajans, 9 years ago)

​https://travis-ci.org/Ayesh/wordpress-develop/jobs/260115631

  • tests/phpunit/includes/bootstrap.php

    diff --git tests/phpunit/includes/bootstrap.php tests/phpunit/includes/bootstrap.php
    index 1450736fd1..8f84b8dbef 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                foreach ( $argv as $i => $arg ) {
    136136                        try {
    137137                                if ( strlen( $arg ) > 1 && $arg[0] === '-' && $arg[1] === '-' ) {
    138138                                        PHPUnit_Util_Getopt::parseLongOption( substr( $arg, 2 ), $this->longOptions, $options, $argv );