Skip to content

Commit b18f563

Browse files
committed
Merge pull request #31 from ApiciusPoulet/patch-1
Update bootstrap.php to launch tests in isolation
2 parents 679785e + b100f50 commit b18f563

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bootstrap/bootstrap.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@
2929

3030
AnnotationRegistry::registerFile($vendorDir.'/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/Annotations/DoctrineAnnotations.php');
3131

32-
define('CMF_TEST_ROOT_DIR', realpath(__DIR__.'/..'));
33-
define('CMF_TEST_CONFIG_DIR', CMF_TEST_ROOT_DIR.'/resources/config');
32+
if (!defined('CMF_TEST_ROOT_DIR')) {
33+
define('CMF_TEST_ROOT_DIR', realpath(__DIR__.'/..'));
34+
}
35+
if (!defined('CMF_TEST_CONFIG_DIR')) {
36+
define('CMF_TEST_CONFIG_DIR', CMF_TEST_ROOT_DIR.'/resources/config');
37+
}

0 commit comments

Comments
 (0)