Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 2.1.0
    • Components: MockBox
    • Labels:
      None

      Description

      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".

      <cfset this["contains"] = contains>
      <cfset variables["contains"] = contains>
      

      The bottom line is redundant since the method already exists in the variables scope and the remaining line can be switched to this:

      <cfset this["contains"] = variables["contains"]>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lmajano Luis Majano
                Reporter:
                bradwood Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: