Class ExceptionMatcher
ExceptionMatcher executes a callable and determines if an exception of a given type was thrown. It optionally matches the exception message.
- Peridot\Leo\Matcher\AbstractMatcher implements Peridot\Leo\Matcher\MatcherInterface
- Peridot\Leo\Matcher\ExceptionMatcher
public
|
|
public
mixed
|
|
public
mixed
|
|
public
|
#
setMessage( string $message )
Set the message thrown from an exception resulting from the callable being invoked. |
public
array
|
|
public
string
|
|
public
string
|
#
getMessage( )
Return the message thrown by an exception resulting from the callable being invoked. |
public
|
|
public
mixed
|
#
setMessageTemplate(
Set the template to be used when an expected exception message is provided. |
public
|
|
public
|
|
public
|
|
public
|
|
protected
boolean
|
|
protected
|
invert(),
isNegated(),
setAssertion(),
setTemplate()
|
protected
array
|
$arguments
|
#
[]
|
protected
string
|
$expectedMessage
|
#
""
|
protected
string
|
$message
A captured exception message |
|
protected
|
$messageTemplate
|
$assertion,
$expected,
$negated,
$template
|