Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.9.4
    • Fix Version/s: None
    • Component/s: Unit tests
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      Although it might be less common to use arrays in addition to objects, but
      they are still very popwerful. Anyway, it would be fine to have the
      following methods for testing arrays: ArrayHasKey, ArrayNotHasKey,
      ArrayHasValue, and ArrayNotHasValue.

      As suggested by Tim Hunt, I added the attached code to the simpletestlib.php:

      Thanks,
      Marcel

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: