Changeset 30298 for trunk/tests/phpunit/includes/bootstrap.php
- Timestamp:
- 11/10/2014 02:48:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r30286 r30298 129 129 } 130 130 131 $ajax_message = true; 132 $ms_files_message = true; 131 $skipped_groups = array( 132 'ajax' => true, 133 'ms-files' => true, 134 'external-http' => true, 135 ); 136 133 137 foreach ( $options as $option ) { 134 138 switch ( $option[0] ) { 135 139 case '--exclude-group' : 136 $ajax_message = false; 137 $ms_files_message = false; 140 foreach ( $skipped_groups as $group_name => $skipped ) { 141 $skipped_groups[ $group_name ] = false; 142 } 138 143 continue 2; 139 144 case '--group' : … … 144 149 } 145 150 } 146 $ajax_message = ! in_array( 'ajax', $groups ); 147 $ms_files_message = ! in_array( 'ms-files', $groups ); 151 152 foreach ( $skipped_groups as $group_name => $skipped ) { 153 if ( in_array( $group_name, $groups ) ) { 154 $skipped_groups[ $group_name ] = false; 155 } 156 } 148 157 continue 2; 149 158 } 150 159 } 151 if ( $ajax_message ) { 152 echo "Not running ajax tests... To execute these, use --group ajax." . PHP_EOL; 153 } 154 if ( $ms_files_message ) { 155 echo "Not running ms_files_rewriting tests... To execute these, use --group ms-files." . PHP_EOL; 160 161 $skipped_groups = array_filter( $skipped_groups ); 162 foreach ( $skipped_groups as $group_name => $skipped ) { 163 echo sprintf( 'Not running %1$s tests. To execute these, use --group %1$s.', $group_name ) . PHP_EOL; 156 164 } 157 165 }
Note: See TracChangeset
for help on using the changeset viewer.