diff --git a/dev/SapphireTestReporter.php b/dev/SapphireTestReporter.php index f27e84e0c..b658b8f67 100644 --- a/dev/SapphireTestReporter.php +++ b/dev/SapphireTestReporter.php @@ -242,7 +242,7 @@ class SapphireTestReporter implements PHPUnit_Framework_TestListener { * Cleanly end the current test */ protected function endCurrentTest() { - if(!$this->currentTest) return; + if(!$this->currentTest || !$this->currentSuite) return; // Time the current test $testDuration = microtime(true) - $this->startTestTime;