diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index 21df46c13..951d619f1 100644 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -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();