Processes this test, when one of its tokens is encountered.

{@internal Unlike in the `AbstractFunctionRestrictionsSniff`,
we can't do a preliminary check on classes as at this point
we don't know the class name yet.}}

@param int $stackPtr The position of the current token in the stack.

@return int|void Integer stack pointer to skip forward or void to continue
normal file processing.