]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - vendor/wikimedia/purtle/tests/bootstrap.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / vendor / wikimedia / purtle / tests / bootstrap.php
diff --git a/vendor/wikimedia/purtle/tests/bootstrap.php b/vendor/wikimedia/purtle/tests/bootstrap.php
new file mode 100644 (file)
index 0000000..7817aa0
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+/**
+ * PHPUnit test bootstrap file for the Purtle component.
+ *
+ * @licence GNU GPL v2+
+ * @author Jeroen De Dauw < jeroendedauw@gmail.com >
+ * @author Daniel Kinzler
+ */
+
+if ( PHP_SAPI !== 'cli' ) {
+       die( 'Not an entry point' );
+}
+
+error_reporting( E_ALL | E_STRICT );
+ini_set( 'display_errors', 1 );
+
+if ( !is_readable( __DIR__ . '/../vendor/autoload.php' ) ) {
+       die( 'You need to install this package with Composer before you can run the tests' );
+}
+
+$autoLoader = require __DIR__ . '/../vendor/autoload.php';
+
+$autoLoader->addPsr4( 'Wikimedia\\Purtle\\Tests\\', __DIR__ . '/phpunit/' );
+
+unset( $autoLoader );