kahlan\matcher\ToThrow::_buildDescription PHP Method

_buildDescription() public static method

Build the description of the runned ::match() call.
public static _buildDescription ( object $actual, object $expected )
$actual object The actual exception instance.
$expected object The expected exception instance.
    public static function _buildDescription($actual, $expected)
    {
        $description = "throw a compatible exception.";
        $data['actual'] = $actual;
        $data['expected'] = $expected;
        static::$_description = compact('description', 'data');
    }