summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-20 03:49:24 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-20 03:49:24 +0000
commit89b4c55989eb0a1d2263de3a4a78c179f458cfee (patch)
treea125af0b0636ecaf984673dffbfe91dccefcfa56 /modules/simpletest/drupal_web_test_case.php
parent67f93fcb161f8ba5bb2c87626f3ef8874e7acffa (diff)
downloadbrdo-89b4c55989eb0a1d2263de3a4a78c179f458cfee.tar.gz
brdo-89b4c55989eb0a1d2263de3a4a78c179f458cfee.tar.bz2
#64967 follow-up by drewish: Replace ereg with preg in file_scan_directory().
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 5bfba7c62..10f1e1390 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -467,7 +467,7 @@ class DrupalWebTestCase {
if (in_array($type, array('binary', 'html', 'image', 'javascript', 'php', 'sql', 'text'))) {
// Use original file directory instead of one created during setUp().
$path = $this->original_file_directory . '/simpletest';
- $files = file_scan_directory($path, $type . '\-.*');
+ $files = file_scan_directory($path, '/' . $type . '\-.*/');
// If size is set then remove any files that are not of that size.
if ($size !== NULL) {