Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-19137

Array[Not]HasKey/Value

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.9.4
    • Unit tests
    • None
    • Any
    • MOODLE_19_STABLE

      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

            skodak Petr Skoda
            m4rc3l Marcel Heusinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.