I\'m trying to provide a member variable as a default value for a class method.
I know it\'s impossible to use a variable as a default value for a non-class function
I believe you can only use constants (strings, numbers, etc) in that syntax (but I could be wrong about that).
I suggest this alternative:
function getTest($var = null) { if (is_null($var)) { $var = $this->test; } }