Documentation

JsonAjax
in package

Table of Contents

Constants

ERROR  = 0
SUCCESS  = 1
WARNING  = 2

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

Properties

Methods

appendError()

public static appendError(mixed $message[, mixed $nameInput = '' ]) : mixed
Parameters
$message : mixed
$nameInput : 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

        
On this page

Search results