Apparently there are issues when mocking a method named "contains" due to that being a reserved word in CFML.
These lines are a syntax error in ACF (assuming the function name is "contains".
The bottom line is redundant since the method already exists in the variables scope and the remaining line can be switched to this:
- Original bug reported here:
- Solution here: http://cfmlblog.adamcameron.me/2013/07/repro-case-for-contains-pseudo-reserved.html