diff --git a/src/Dev/SapphireTest.php b/src/Dev/SapphireTest.php index 0c3fec858..8b4cc28cc 100644 --- a/src/Dev/SapphireTest.php +++ b/src/Dev/SapphireTest.php @@ -343,12 +343,18 @@ class SapphireTest extends PHPUnit_Framework_TestCase implements TestOnly * - Custom state helpers * * User code should call parent::setUpBeforeClass() before custom setup code + * + * @throws Exception */ public static function setUpBeforeClass() { // Start tests static::start(); + if (!static::$state) { + throw new Exception('SapphireTest failed to bootstrap!'); + } + // Call state helpers static::$state->setUpOnce(static::class);