kahlan\matcher\ToHaveLength::_buildDescription PHP Method

_buildDescription() public static method

Build the description of the runned ::match() call.
public static _buildDescription ( mixed $actual, mixed $length, mixed $expected )
$actual mixed The actual value.
$length mixed The actual length value value.
$expected mixed The expected length value.
    public static function _buildDescription($actual, $length, $expected)
    {
        $description = "have the expected length.";
        $data['actual'] = $actual;
        $data['actual length'] = $length;
        $data['expected length'] = $expected;
        static::$_description = compact('description', 'data');
    }