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