summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/tests/bootstrap.php
blob: fab8d4df09a0a01f100589b23b8643b1ed70bda0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

if ( PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg' ) {
	die( 'Not an entry point' );
}

if ( !is_readable( $path = __DIR__ . '/../../SemanticMediaWiki/tests/autoloader.php' ) ) {
	die( 'The SemanticMediaWiki test autoloader is not available' );
}

print sprintf( "\n%-20s%s\n", "Semantic Result Formats: ", SRF_VERSION );

$autoloader = require $path;
$autoloader->addPsr4( 'SRF\\Tests\\', __DIR__ . '/phpunit' );
$autoloader->addPsr4( 'SMW\\Test\\', __DIR__ . '/../../SemanticMediaWiki/tests/phpunit' );
$autoloader->addPsr4( 'SMW\\Tests\\', __DIR__ . '/../../SemanticMediaWiki/tests/phpunit' );