| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function process(ContainerBuilder $container) |
||
| 19 | { |
||
| 20 | // Connect to database and build manifest |
||
| 21 | $frameworkPath = $container->getParameter('behat.silverstripe_extension.framework_path'); |
||
| 22 | $_GET['flush'] = 1; |
||
| 23 | require_once $frameworkPath . '/core/Core.php'; |
||
| 24 | |||
| 25 | if (class_exists('TestRunner')) { |
||
| 26 | // 3.x compat |
||
| 27 | \TestRunner::use_test_manifest(); |
||
| 28 | } else { |
||
| 29 | \SapphireTest::use_test_manifest(); |
||
| 30 | } |
||
| 31 | |||
| 32 | unset($_GET['flush']); |
||
| 33 | |||
| 34 | // Remove the error handler so that PHPUnit can add its own |
||
| 35 | restore_error_handler(); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |