public function exceptionMessageOnTestFailure(string $parameterName, $value, bool $itemType = false): string
26
{
27
6
return sprintf('sprintf(\'Invalid value %%s, the value must use at most %1$d digits, "%%d" given\', var_export($%2$s, true), mb_strlen(preg_replace(\'/(\D)/\', \'\', (string) $%2$s)))', $value, $parameterName);