Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-36702 PHPUnit improvements 2.4 META
  3. MDL-36817

Backport Composer PHPUnit installation

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Major Major
    • 2.3.4
    • 2.3.3
    • Unit tests
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • Hide

      1/ go to your moodle dirroot
      2/ install composer - see http://getcomposer.org/doc/00-intro.md
      3) php composer.phar install --dev
      4/ execute "vendor/bin/phpunit" (sorry, *nix only instructions for now)
      5/ bump up some version number
      6/ execute again and verify the init script works too
      7/ try the hidden web interface at admin/tool/phpunit/webrunner.php
      8/ repeat the testing with & without standard PHPUnit from PEAR

      Show
      1/ go to your moodle dirroot 2/ install composer - see http://getcomposer.org/doc/00-intro.md 3) php composer.phar install --dev 4/ execute "vendor/bin/phpunit" (sorry, *nix only instructions for now) 5/ bump up some version number 6/ execute again and verify the init script works too 7/ try the hidden web interface at admin/tool/phpunit/webrunner.php 8/ repeat the testing with & without standard PHPUnit from PEAR

      should be a lot better than PEAR...

      http://getcomposer.org

      Sample installation of PHPUnit into moodle project:

      $ cd yourmoodledir
      $ curl -s https://getcomposer.org/installer | php
      $ php composer.phar install --dev
      

      Execution of PHPUnit:

      $ cd yourmoodledir
      $ vendor/bin/phpunit
      

      Upgrade to next PHPUnit version:

      $ cd yourmoodledir
      $ php composer.phar update
      

            skodak Petr Skoda
            skodak Petr Skoda
            Aparup Banerjee Aparup Banerjee
            Rajesh Taneja Rajesh Taneja
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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