/[drupal]/contributions/modules/simpletest/switch/simpletest_switch.module
ViewVC logotype

Diff of /contributions/modules/simpletest/switch/simpletest_switch.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.1, Tue Nov 10 02:30:08 2009 UTC revision 1.1.2.2, Tue Nov 10 03:20:51 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: simpletest_switch.module,v 1.1.2.1 2009/11/10 02:30:08 boombatower Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 97  function simpletest_switch_registry_file Line 97  function simpletest_switch_registry_file
97          unset($files[$key]);          unset($files[$key]);
98        }        }
99      }      }
100    
101        // Remove 2.x compatible test files.
102        foreach ($modules as $module) {
103          if (!empty($module->info['files'])) {
104            if (!empty($module->info['testing_api']) && $module->info['testing_api'] == '2.x') {
105              $dir = $module->dir;
106              foreach ($module->info['files'] as $file) {
107                if (substr($file, -5) == '.test') {
108                  unset($files["$dir/$file"]);
109                }
110              }
111            }
112          }
113        }
114    }    }
115  }  }
116    

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2