Failure

A failure provides the details of a failure that happened during the execution of a test case.<p/>

The failure can be:

  • an assertion failure: an assertion failed
  • an error failure: an expected error occured
package

Default

Methods

__construct

__construct() 

isError

isError() : boolean

Response

boolean

true if the failure is an error failure otherwise it is an assertion failure

message

message() : string

Response

string

the error message

stackTrace

stackTrace() : string

Response

string

the stack trace