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

phpunit support - stage 1

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: Unit tests
    • Labels:

      Description

      Basic support for phpunit testing:

      • bootstart file - must be used in "-c" parameter or in xml config file - see phpunit.xml.dist
      • initialisation of separate database and dataroot - see config-dist.php, use admin/tool/phpunit/cgi/util.php
      • basic_testcase for tests that do not modify database - it detects changes in CFG, USER and database (resets them if necessary)
      • documentation is in lib/phpunit/readme.md

        Attachments

        1. cvs.php
          5 kB
        2. git.php
          3 kB
        3. phpunit.class.php
          3 kB

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              skodak Petr Skoda
              Integrator:
              Sam Hemelryk
              Tester:
              Tim Barker
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Jun/12