Extension:Doppelganger

From mediawiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Doppelganger
Release status: experimental
Implementation API
Description Provides test stubs and doubles for Scribunto.
Author(s)
Compatibility policy Master maintains backwards compatibility.
MediaWiki 1.36 Not formally tested
MediaWiki 1.34 Not formally tested
MediaWiki 1.32 Not formally tested
Database changes No
License GNU General Public License 2.0 or later
Download
README, LDoc

Check usage and version matrix.

Please note that development is in a very early stage!

Doppelgänger provides a framework for test stubs and doubles.

Spies work, doubles not ported yet.

Installation[edit]

Doppelgänger depends on modules from the Scribunto extension.

  • Download and place the file(s) in a directory called Doppelganger in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'Doppelganger' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Development[edit]

For recreating the Vagrant-based development environment, see Doppelganger: Topics/Vagrant.

See also[edit]