mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #3722 from willmorgan/bugfixes/testsuite-reporter-fix
FIX check for suite existence in endCurrentTest
This commit is contained in:
commit
7d6263c80f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user