Skip to content

Commit

Permalink
Merge branch 'release/v2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
javigomez committed Apr 27, 2016
2 parents a291f2a + a3f1874 commit a7fd0b2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Teststatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ public function _initialize()
// we are printing test status and time taken
public function beforeTest(TestEvent $e)
{
$testName = $e->getTest()->toString();
preg_match('#\((.*?)\)#', $testName, $fileName);

self::$tmpCurrentTest = $fileName[1];
self::$tmpCurrentTest = \Codeception\Test\Descriptor::getTestFileName($e->getTest());
}

// we are printing test status and time taken
Expand Down Expand Up @@ -83,9 +80,7 @@ public function afterStep(StepEvent $e)
public function afterTest(TestEvent $e)
{
$test = new \stdClass;
$testName = $e->getTest()->toString();
preg_match('#\((.*?)\)#', $testName, $fileName);
$test->name = $fileName[1];
$test->name = \Codeception\Test\Descriptor::getTestFileName($e->getTest());


// stack overflow: http://stackoverflow.com/questions/16825240/how-to-convert-microtime-to-hhmmssuu
Expand Down

0 comments on commit a7fd0b2

Please sign in to comment.