ExpressionCoreAux

Extends \PHPUnit_Framework_TestCase

Helper class for expression core tests.

Methods

__construct

__construct(string $expression, string $sgqa, string $questionType, mixed $value) 

Arguments

$expression

string

$sgqa

string

$questionType

string

$value

mixed

compareExpression

compareExpression() : void

JS code to setup environment so LEMval() can run.

getDummyNodeSetup() : string

Response

string

Run $js code in Node on command line.

runNode(string $js) : array

Arguments

$js

string

Response

array

Properties

If true, compares JS result with json_encode(PHP result)

jsonEncodeEmResult : boolean
var

Type(s)

boolean

If true, sets onlynum = 1 in LEMvarNameAttr.

onlynum : int
var

Type(s)

int

expression

expression : string
var

Type(s)

string

Survey-group-question-answer code, like '123X123X123_1'.

sgqa : string
var

Type(s)

string

Question type char. Defaults to 'T' = long free text.

questionType : string
var

Type(s)

string

Value of question, as in $_SESSION and <input>.

value : 
mixed

Question alias.

alias : string
var

Type(s)

string