MDL-40415 add explicit OPcache support

This commit is contained in:
Petr Škoda
2013-07-04 19:32:26 +02:00
parent f8e6e5bc30
commit c05a50992e
17 changed files with 136 additions and 0 deletions
+6
View File
@@ -26,6 +26,12 @@ if (isset($_SERVER['REMOTE_ADDR'])) {
die; // no access from web!
}
// Force OPcache reset if used, we do not want any stale caches
// when preparing test environment.
if (function_exists('opcache_reset')) {
opcache_reset();
}
require_once(__DIR__.'/../../../../lib/clilib.php');
require_once(__DIR__.'/../../../../lib/phpunit/bootstraplib.php');
require_once(__DIR__.'/../../../../lib/testing/lib.php');