Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 827 Bytes

README.markdown

File metadata and controls

35 lines (23 loc) · 827 Bytes

Testing Scripto

Scripto uses the SimpleTest PHP testing framework. By running these tests, you can:

  • Test your external system's adapter for expected results;
  • Test the your MediaWiki instance via Scripto's MediaWiki API client;
  • Test the Scripto_Document base class.

Installation

  • Download the SimpleTest framework;
  • Copy config.php.changeme to config.php;
  • Set the configuration in config.php;

To copy the configuration file:

$ cd /path/to/scripto/tests/
$ cp config.php.changeme config.php`

Running the Tests

On the command line:

$ cd /path/to/scripto/tests/
$ php all_tests.php

In the browser: