Skip to content

Commit

Permalink
- Merge [4657].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 21, 2009
1 parent 64fbd32 commit 528860d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions PHPUnit/Util/TestDox/ResultPrinter.php
Expand Up @@ -230,8 +230,15 @@ public function startTest(PHPUnit_Framework_Test $test)
$this->tests = array(); $this->tests = array();
} }


$this->currentTestMethodPrettified = $this->prettifier->prettifyTestMethod($test->getName()); $annotations = $test->getAnnotations();
$this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_PASSED;
if (isset($annotations['method']['testdox'][0])) {
$this->currentTestMethodPrettified = $annotations['method']['testdox'][0];
} else {
$this->currentTestMethodPrettified = $this->prettifier->prettifyTestMethod($test->getName());
}

$this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_PASSED;
} }
} }


Expand Down

0 comments on commit 528860d

Please sign in to comment.