mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
Merge pull request #32 from aurelijus/phpunit-simplify-names
Simplify phpunit test names
This commit is contained in:
commit
ee41e9c720
1 changed files with 1 additions and 7 deletions
|
@ -188,13 +188,7 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
|
|||
}
|
||||
}
|
||||
|
||||
$pos = strpos($event->suite, '::');
|
||||
if ($pos === false) {
|
||||
$name = substr($event->test, strlen($event->suite) + 2);
|
||||
} else {
|
||||
$name = substr($event->test, $pos + 2);
|
||||
$name = preg_replace('/ \(array\(.*\)\)/', '', $name);
|
||||
}
|
||||
$name = preg_replace('/ \(.*\)/', '', $event->test);
|
||||
|
||||
$result = new ArcanistUnitTestResult();
|
||||
$result->setName($name);
|
||||
|
|
Loading…
Reference in a new issue