kahlan\matcher\ToEcho::_buildDescription PHP Method

_buildDescription() public static method

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