class PHPUnit_Framework_Error_Warning extends PHPUnit_Framework_Error (View source)

Wrapper for PHP warnings.

You can disable notice-to-exception conversion by setting

PHPUnit_Framework_Error_Warning::$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