JsonAjax
in package
Table of Contents
Constants
Properties
- $buffer : mixed
Methods
- appendError() : mixed
- disableHistory() : mixed
- hasError() : mixed
- response() : mixed
- responseSimple() : mixed
- RuntimeException is necessary here because in the real code, the 'response' from JsonAjax stops the request. So, to get the 'message' and assert the value on unittest, we need to stop the running test as well, avoiding the new messages overwriting the correct value.
Constants
ERROR
public
mixed
ERROR
= 0
SUCCESS
public
mixed
SUCCESS
= 1
WARNING
public
mixed
WARNING
= 2
Properties
$buffer
private
static mixed
$buffer
Methods
appendError()
public
static appendError(mixed $message[, mixed $nameInput = '' ]) : mixed
Parameters
- $message : mixed
- $nameInput : mixed = ''
disableHistory()
public
static disableHistory() : mixed
hasError()
public
static hasError() : mixed
response()
public
static response(mixed $status, mixed $message) : mixed
Parameters
- $status : mixed
- $message : mixed
responseSimple()
RuntimeException is necessary here because in the real code, the 'response' from JsonAjax stops the request. So, to get the 'message' and assert the value on unittest, we need to stop the running test as well, avoiding the new messages overwriting the correct value.
public
static responseSimple(mixed $message) : mixed
Parameters
- $message : mixed