Comply with moved use_test_manifest() method

Moved from TestRunner to SapphireTest in 4.0.
This commit is contained in:
Ingo Schommer 2015-08-28 16:50:51 +12:00
parent 4a9db2be90
commit 661bfe9a89

View File

@ -21,7 +21,14 @@ class CoreInitializationPass implements CompilerPassInterface
$frameworkPath = $container->getParameter('behat.silverstripe_extension.framework_path');
$_GET['flush'] = 1;
require_once $frameworkPath . '/core/Core.php';
if(class_exists('TestRunner')) {
// 3.x compat
\TestRunner::use_test_manifest();
} else {
\SapphireTest::use_test_manifest();
}
unset($_GET['flush']);
// Remove the error handler so that PHPUnit can add its own