src/Expectation/Matcher/ExceptionMatcher.php
public function match($callable)
    {
        try {
            $callable();
        } catch(\Exception $exception) {
            $this->thrown = $exception;
        }

        return ($this->thrown instanceof $this->expected);
    }
public function match($callable)
    {
        try {
            $callable();
        } catch(\Exception $exception) {
            $this->thrown = $exception;
        }

        return ($this->thrown instanceof $this->expected);
    }
public function match ( $ callable ) { try { $ callable ( ) ; } catch ( \ Exception $ exception ) { $ this -> thrown = $ exception ; } return ( $ this -> thrown instanceof $ this -> expected ) ; }
Compares the exception thrown by the callable, if any, to the expected
exception. Returns true if an exception of the expected class is thrown,
false otherwise.

@param  callable $callable The function to invoke
@return boolean  Whether or not the function threw the expected exception
Compares the exception thrown by the callable if any to the expected exception . Returns true if an exception of the expected class is thrown false otherwise .