Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Teststatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,19 @@ public function _initialize()
static $events = array(
Events::TEST_BEFORE => 'beforeTest',
Events::TEST_END => 'afterTest',
Events::SUITE_BEFORE => 'beforeSuite',
Events::SUITE_AFTER => 'afterSuite',
Events::STEP_BEFORE => 'beforeStep',
Events::STEP_AFTER => 'afterStep'
);

// reset times and not performant tests arrays, in case multiple suites are launched
public function beforeSuite(SuiteEvent $e)
{
self::$testTimes = array();
self::$notPerformantStepsByTest = array();
}

// we are printing test status and time taken
public function beforeTest(TestEvent $e)
{
Expand Down