Documentation

PHPUnit_Framework_Error_Warning extends PHPUnit_Framework_Error
in package

Wrapper for PHP warnings.

You can disable notice-to-exception conversion by setting

PHPUnit_Framework_Error_Warning::$enabled = false;
Tags
since

Class available since Release 3.3.0

Table of Contents

$enabled  : mixed
$serializableTrace  : array<string|int, mixed>
__construct()  : mixed
__sleep()  : mixed
__toString()  : string
getSerializableTrace()  : array<string|int, mixed>
Returns the serializable trace (without 'args').

Properties

$enabled

public static mixed $enabled = rue

$serializableTrace

protected array<string|int, mixed> $serializableTrace

Methods

__construct()

public __construct([mixed $message = '' ], mixed $code[, Exception $previous = null ]) : mixed
Parameters
$message : mixed = ''
$code : mixed
$previous : Exception = null
Return values
mixed

__sleep()

public __sleep() : mixed
Return values
mixed

__toString()

public __toString() : string
Return values
string

getSerializableTrace()

Returns the serializable trace (without 'args').

public getSerializableTrace() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results