mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
show only name for named datasets
Took 4 minutes
This commit is contained in:
@ -111,8 +111,10 @@ final class Datasets
|
||||
{
|
||||
$exporter = new Exporter();
|
||||
|
||||
$nameInsert = is_string($key) ? \sprintf('data set "%s" ', $key) : '';
|
||||
if(is_int($key)){
|
||||
return \sprintf(' with (%s)', $exporter->shortenedRecursiveExport($data));
|
||||
}
|
||||
|
||||
return \sprintf(' with %s(%s)', $nameInsert, $exporter->shortenedRecursiveExport($data));
|
||||
return \sprintf(' with data set "%s"', $key);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user