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

Misleading error message when using phpunit with composer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.4.3
    • Unit tests
    • None
    • MOODLE_24_STABLE
    • MOODLE_25_STABLE
    • w13_MDL-38589_m25_pear
    • Hide

      0/ somehow kill your PEAR PHPUnit if installed
      1/ delete vendor/*
      2/ try phpunit init
      3/ verify error message
      4/ install everything via composer
      5/ verify phpunit works again

      Show
      0/ somehow kill your PEAR PHPUnit if installed 1/ delete vendor/* 2/ try phpunit init 3/ verify error message 4/ install everything via composer 5/ verify phpunit works again

      I've got some problem with my phpunit install via composer, but the error message is talking about the PEAR library:

      (MOODLE_24_STABLE=29f8c ?2) danp@dan ~/www/production_master_moodleorg> php composer.phar install --dev
      Loading composer repositories with package information
      Installing dependencies (including require-dev) from lock file
      Nothing to install or update
      Generating autoload files
      (MOODLE_24_STABLE=29f8c ?2) danp@dan ~/www/production_master_moodleorg> phpunit
      Moodle PHPUnit environment is not initialised, please use:
       php admin/tool/phpunit/cli/init.php
      (MOODLE_24_STABLE=29f8c ?2) danp@dan ~/www/production_master_moodleorg> php admin/tool/phpunit/cli/init.phpInitialising Moodle PHPUnit test environment...
      Moodle can not find PHPUnit PEAR library
      

            skodak Petr Skoda
            poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            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.