kahlan\matcher\ToBeA::_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 type.
$expected string The expected type.
    public static function _buildDescription($actual, $expected)
    {
        $description = "have the expected type.";
        $data['actual'] = $actual;
        $data['expected'] = $expected;
        static::$_description = compact('description', 'data');
    }