mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Helpful warning when phpunit bootstrap appears misconfigured
This commit is contained in:
parent
32cef975ef
commit
cbac375590
@ -171,6 +171,13 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
public function setUp() {
|
||||
|
||||
if (!defined('FRAMEWORK_PATH')) {
|
||||
trigger_error(
|
||||
'Missing constants, did you remember to include the test bootstrap in your phpunit.xml file?',
|
||||
E_USER_WARNING
|
||||
);
|
||||
}
|
||||
|
||||
//nest config and injector for each test so they are effectively sandboxed per test
|
||||
Config::nest();
|
||||
Injector::nest();
|
||||
|
Loading…
Reference in New Issue
Block a user