Always load the parser in the test environment
This fixes the problem that $PARSER_MODES was sometimes unset by PHPUnit between test functions that called p_get_parsermodes() as PHPUnit tried to restore the global environment. I couldn't reproduce this when I executed all tests but just when I executed a single plugin test.
Please register or sign in to comment