kahlan\matcher\ToThrow::actual PHP 메소드

actual() 공개 정적인 메소드

Normalise the actual value as an Exception.
public static actual ( mixed $actual ) : mixed
$actual mixed The actual value to be normalized.
리턴 mixed The normalised value.
    public static function actual($actual)
    {
        try {
            $actual();
        } catch (Exception $e) {
            return $e;
        }
    }