Skip to content

Commit ad653d8

Browse files
committed
Shorter test name
1 parent afb95c4 commit ad653d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Yandex/Allure/Adapter/AllureAdapter.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ public function startTest(PHPUnit_Framework_Test $test)
213213
{
214214
if ($test instanceof \PHPUnit_Framework_TestCase) {
215215
$suiteName = $this->suiteName;
216-
$methodName = $test->getName();
217-
$this->methodName = $methodName;
218-
$event = new TestCaseStartedEvent($this->uuid, get_class($test) . "::" . $methodName);
216+
$testName = $test->getName();
217+
$methodName = $this->methodName = $test->getName(false);
218+
219+
$event = new TestCaseStartedEvent($this->uuid, $testName);
219220
if (class_exists($suiteName, false) && method_exists($suiteName, $methodName)) {
220221
$annotationManager = new Annotation\AnnotationManager(
221222
Annotation\AnnotationProvider::getMethodAnnotations($suiteName, $methodName)

0 commit comments

Comments
 (0)