class PHPUnit_Framework_Error_Deprecated extends PHPUnit_Framework_Error (View source)

Wrapper for PHP deprecated errors.

You can disable deprecated-to-exception conversion by setting

PHPUnit_Framework_Error_Deprecated::$enabled = false;

Properties

protected array $serializableTrace from PHPUnit_Framework_Exception
static $enabled

Methods

__construct($message, $code, string $file, int $line, Exception $previous = null)

Constructor.

array
getSerializableTrace()

Returns the serializable trace (without 'args').

string
__toString()

No description

__sleep()

No description

Details

__construct($message, $code, string $file, int $line, Exception $previous = null)

Constructor.

Parameters

$message
$code
string $file
int $line
Exception $previous

array getSerializableTrace()

Returns the serializable trace (without 'args').

Return Value

array

string __toString()

Return Value

string