Skip to content
Browse files

- Merge [4657].

  • Loading branch information...
1 parent 64fbd32 commit 528860daedc5354c793bad0c3648389d516e51ae @sebastianbergmann committed Feb 21, 2009
Showing with 9 additions and 2 deletions.
  1. +9 −2 PHPUnit/Util/TestDox/ResultPrinter.php
View
11 PHPUnit/Util/TestDox/ResultPrinter.php
@@ -230,8 +230,15 @@ public function startTest(PHPUnit_Framework_Test $test)
$this->tests = array();
}
- $this->currentTestMethodPrettified = $this->prettifier->prettifyTestMethod($test->getName());
- $this->testStatus = PHPUnit_Runner_BaseTestRunner::STATUS_PASSED;
+ $annotations = $test->getAnnotations();
+
+ 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;
}
}

0 comments on commit 528860d

Please sign in to comment.
Something went wrong with that request. Please try again.