Merge pull request #3722 from willmorgan/bugfixes/testsuite-reporter-fix

FIX check for suite existence in endCurrentTest
This commit is contained in:
Daniel Hensby 2015-02-03 13:09:10 +00:00
commit 7d6263c80f

View File

@ -242,7 +242,7 @@ class SapphireTestReporter implements PHPUnit_Framework_TestListener {
* Cleanly end the current test * Cleanly end the current test
*/ */
protected function endCurrentTest() { protected function endCurrentTest() {
if(!$this->currentTest) return; if(!$this->currentTest || !$this->currentSuite) return;
// Time the current test // Time the current test
$testDuration = microtime(true) - $this->startTestTime; $testDuration = microtime(true) - $this->startTestTime;