]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - vendor/wikimedia/purtle/tests/bootstrap.php
MediaWiki 1.30.2
[autoinstalls/mediawiki.git] / vendor / wikimedia / purtle / tests / bootstrap.php
1 <?php
2
3 /**
4  * PHPUnit test bootstrap file for the Purtle component.
5  *
6  * @licence GNU GPL v2+
7  * @author Jeroen De Dauw < jeroendedauw@gmail.com >
8  * @author Daniel Kinzler
9  */
10
11 if ( PHP_SAPI !== 'cli' ) {
12         die( 'Not an entry point' );
13 }
14
15 error_reporting( E_ALL | E_STRICT );
16 ini_set( 'display_errors', 1 );
17
18 if ( !is_readable( __DIR__ . '/../vendor/autoload.php' ) ) {
19         die( 'You need to install this package with Composer before you can run the tests' );
20 }
21
22 $autoLoader = require __DIR__ . '/../vendor/autoload.php';
23
24 $autoLoader->addPsr4( 'Wikimedia\\Purtle\\Tests\\', __DIR__ . '/phpunit/' );
25
26 unset( $autoLoader );