Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.markdown
adapter_test.php
all_tests.php
config.php.changeme
document_test.php
mediawiki_test.php

README.markdown

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:

On the command line:

$ cd /path/to/scripto/tests/
$ cp config.php.changeme config.php
  • Set the configuration in config.php:

You can use the following document IDs to test Scripto's Example adapter:

// Test document ID.
define('TEST_DOCUMENT_ID', '16344');

or:

// Test document ID.
define('TEST_DOCUMENT_ID', '[Facsimile of] letter to Messrs. O. P. Hall et al from Lincoln.');

Running the Tests

On the command line:

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

In the browser:

  • Make sure the Scripto tests directory is available to your web server;
  • Go to http://your-domain/tests/all_tests.php
Something went wrong with that request. Please try again.