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

Specify phpunit dependency as require-dev instead of require

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4.1
    • 2.4.1, 2.5
    • Unit tests
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_24_STABLE
    • w49_MDL-36936_m25_composerdev
    • Hide

      1/ delete dirroot/vendor/
      2/ delete dirrott/composer.lock
      3/ try php composer.phar install --dev
      4/ verify phpunit is installed into vendor dir
      5/ verify --dev was added to the info in the phpunit admin tool

      Show
      1/ delete dirroot/vendor/ 2/ delete dirrott/composer.lock 3/ try php composer.phar install --dev 4/ verify phpunit is installed into vendor dir 5/ verify --dev was added to the info in the phpunit admin tool

      In 2.4 phpunit is specified as a 'require' package in the composer installer (composer.json), the 'require-dev' attribute, which is more appropriate for dev/test purposes can be used instead of it. Would be useful if in future Moodle intends to use composer to manage other libraries dependencies (used by Moodle core). The only difference using this attribute instead of 'require' is that composer has to be executed with --dev option (http://getcomposer.org/doc/04-schema.md#require-dev)

            skodak Petr Skoda
            dmonllao David Monllaó
            Sam Hemelryk Sam Hemelryk
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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