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

          Issue Links

            Activity

            Hide
            timhunt Tim Hunt added a comment -

            Forum thread is http://moodle.org/mod/forum/discuss.php?d=122823

            Nico, may as well leave this assigned to you for now. However, if you don't want to deal with this, assign it to me and I'll do it when I get back from holiday.

            Show
            timhunt Tim Hunt added a comment - Forum thread is http://moodle.org/mod/forum/discuss.php?d=122823 Nico, may as well leave this assigned to you for now. However, if you don't want to deal with this, assign it to me and I'll do it when I get back from holiday.
            Hide
            skodak Petr Skoda added a comment -

            hi, this should be finally resolved by migration to phpunit - see http://www.phpunit.de/manual/current/en/index.html.

            thanks for the report,

            petr

            Show
            skodak Petr Skoda added a comment - hi, this should be finally resolved by migration to phpunit - see http://www.phpunit.de/manual/current/en/index.html . thanks for the report, petr

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: