mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX check for suite existence in endCurrentTest
When using data providers with tests, the reporter appears to get confused and run callbacks in a weird order. This checks that the current suite before adding more details.
This commit is contained in:
parent
f17d594141
commit
00e029f574
@ -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…
Reference in New Issue
Block a user