Add working interpolated dataset name

This commit is contained in:
Jordan Welch
2024-04-29 18:01:09 -05:00
parent 16125df77b
commit 8bbee3c1e5
4 changed files with 18 additions and 3 deletions

View File

@ -194,7 +194,13 @@ trait Testable
$method = TestSuite::getInstance()->tests->get(self::$__filename)->getMethod($this->name());
$description = $this->dataName() ? $method->description.' with '.$this->dataName() : $method->description;
$description = $method->description;
if ($this->dataName()) {
$description = str_contains((string) $description, ':dataset')
? str_replace(':dataset', str_replace('dataset ', '', $this->dataName()), (string) $description)
: $description.' with '.$this->dataName();
}
$description = htmlspecialchars(html_entity_decode((string) $description), ENT_NOQUOTES);
if ($method->repetitions > 1) {