CodeIgniter v4.5 API

TestException extends CriticalError
in package
uses DebugTraceableTrait

Exception for automatic logging.

Table of Contents

Methods

__construct()  : mixed
Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.
forInvalidMockClass()  : static

Methods

__construct()

Tweaks the exception's constructor to assign the file/line to where it is actually raised rather than were it is instantiated.

public final __construct([string $message = '' ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ''
$code : int = 0
$previous : Throwable|null = null

forInvalidMockClass()

public static forInvalidMockClass(string $name) : static
Parameters
$name : string
Return values
static

        
On this page

Search results