4 * PHPUnit test bootstrap file for the Purtle component.
7 * @author Jeroen De Dauw < jeroendedauw@gmail.com >
8 * @author Daniel Kinzler
11 if ( PHP_SAPI !== 'cli' ) {
12 die( 'Not an entry point' );
15 error_reporting( E_ALL | E_STRICT );
16 ini_set( 'display_errors', 1 );
18 if ( !is_readable( __DIR__ . '/../vendor/autoload.php' ) ) {
19 die( 'You need to install this package with Composer before you can run the tests' );
22 $autoLoader = require __DIR__ . '/../vendor/autoload.php';
24 $autoLoader->addPsr4( 'Wikimedia\\Purtle\\Tests\\', __DIR__ . '/phpunit/' );