PHP Class Eloquent\Phony\Assertion\Exception\AssertionException

Inheritance: extends Exceptio\Exception
ファイルを表示 Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
__construct ( string $description ) Construct a new assertion exception.
tracePhonyCall ( array $trace ) : array | null Find the Phony entry point call in a stack trace.
trim ( Exception $exception ) Trim the supplied exception's stack trace to only include relevant information.

Method Details

__construct() public method

Construct a new assertion exception.
public __construct ( string $description )
$description string The failure description.

tracePhonyCall() public static method

Find the Phony entry point call in a stack trace.
public static tracePhonyCall ( array $trace ) : array | null
$trace array The stack trace.
return array | null The call, or null if unable to determine the entry point.

trim() public static method

Also replaces the file path and line number.
public static trim ( Exception $exception )
$exception Exception The exception.