final class ErrorHandler (View source)

internal  This class is not covered by the backward compatibility promise for PHPUnit
 

Constants

private UNHANDLEABLE_LEVELS

private INSUPPRESSIBLE_LEVELS

Methods

static ErrorHandler
instance()

No description

false
__invoke(int $errorNumber, string $errorString, string $errorFile, int $errorLine)

No description

true
deprecationHandler(int $errorNumber, string $errorString, string $errorFile, int $errorLine)

No description

void
registerDeprecationHandler()

No description

void
restoreDeprecationHandler()

No description

void
enable(TestCase $test)

No description

void
disable()

No description

void
useBaseline(Baseline $baseline)

No description

void
useDeprecationTriggers(array $deprecationTriggers)

No description

void
enterTestCaseContext(string $className, string $methodName)

No description

void
leaveTestCaseContext()

No description

Details

static ErrorHandler instance()

No description

Return Value

ErrorHandler

false __invoke(int $errorNumber, string $errorString, string $errorFile, int $errorLine)

No description

Parameters

int $errorNumber
string $errorString
string $errorFile
int $errorLine

Return Value

false

Exceptions

NoTestCaseObjectOnCallStackException

true deprecationHandler(int $errorNumber, string $errorString, string $errorFile, int $errorLine)

No description

Parameters

int $errorNumber
string $errorString
string $errorFile
int $errorLine

Return Value

true

void registerDeprecationHandler()

No description

Return Value

void

void restoreDeprecationHandler()

No description

Return Value

void

void enable(TestCase $test)

No description

Parameters

TestCase $test

Return Value

void

void disable()

No description

Return Value

void

void useBaseline(Baseline $baseline)

No description

Parameters

Baseline $baseline

Return Value

void

void useDeprecationTriggers(array $deprecationTriggers)

No description

Parameters

array $deprecationTriggers

Return Value

void

void enterTestCaseContext(string $className, string $methodName)

No description

Parameters

string $className
string $methodName

Return Value

void

void leaveTestCaseContext()

No description

Return Value

void