trait Tlf\Lexer\Test\Directives\Values
Constants
Properties
-
`protected $_values_tests= [
'Values.Arithmetic.Nesting'=>[ 'ast.type''var_assign', 'start''php_code'], PEMDAS 'input''(1*2+(4*6/((1+2)+(3**2)))+3 - 12) / 3 ** 2 + 987;', 'expect'=>[ 'value''(1*2+(4*6/((1+2)+(3**2)))+3-12)/3**2+987', 'declaration''(1*2+(4*6/((1+2)+(3**2)))+3 - 12) / 3 ** 2 + 987;', ], ], 'Values.Arithmetic'=>[ 'ast.type''var_assign', 'start''php_code'], PEMDAS 'input''(1*2)+3 - 12 / 3 ** 2 + 987;', 'expect'=>[ 'value''(1*2)+3-12/3**2+987', 'declaration''(1*2)+3 - 12 / 3 ** 2 + 987;', ], ], 'Values.Arithmetic.Add'=>[ 'ast.type''var_assign', 'start''php_code'], PEMDAS 'input''1 + 2;', 'expect'=>[ 'value''1+2', 'declaration''1 + 2;', ], ], 'Values.Array.WithConcats'=>[ 'ast.type''var_assign', 'start''php_code'], 'input''["a"."b"."c",22,"c"];', 'expect'=>[ 'value''["a"."b"."c",22,"c"]', 'declaration''["a"."b"."c",22,"c"];', ], ], 'Values.Array.Keyed'=>[ 'ast.type''var_assign', 'start''php_code'], 'input''["a"=>1,22,"c"=>\'third element\'];`