Make WordPress Core

Changeset 44707


Ignore:
Timestamp:
01/28/2019 06:49:22 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Build/Test Tools: Don't throw an exception for unrecognized options in WP_PHPUnit_Util_Getopt::parseLongOption().

The method is only used for two known options: group and exclude-group, others should be passed to PHPUnit.

Props johnbillion.
See #43218.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/bootstrap.php

    r44701 r44707  
    154154        'exclude-group=',
    155155        'group=',
    156         'verbose=',
    157156    );
    158157    function __construct( $argv ) {
     
    275274            return;
    276275        }
    277 
    278         throw new Exception( "unrecognized option --$opt" );
    279276    }
    280277}
Note: See TracChangeset for help on using the changeset viewer.