Skip to content

Allow to specify trimString count number #874

@JoniJnm

Description

@JoniJnm

Hi,

I use behat in verbose mode (-vvv). When there is an exception behat calls ExceptactionException::__toString, and this function uses ExceptactionException::trimString with the default $count value.

The function looks like:

protected function trimString($string, $count = 1000)
{
$string = trim($string);
if ($count < mb_strlen($string)) {
return mb_substr($string, 0, $count - 3).'...';
}
return $string;
}

I would like to disable the $count or increase the value. Maybe adding a ENV variable could be useful?

I can not see the full stack trace with only 1000 chars

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions