Add autoloader for tests, phpunit config

This commit is contained in:
2023-11-06 23:46:30 +01:00
parent 53c645b132
commit 631debcfd8
8 changed files with 118 additions and 18 deletions

View File

@ -6,10 +6,6 @@
*/
declare(strict_types = 1);
use PHPUnit\Framework\TestCase;
require_once __DIR__ . "/../src/NodaWikidataFetcher.php";
require_once __DIR__ . "/../../MDErrorReporter/exceptions/generic/MDExpectedException.php";
require_once __DIR__ . "/../../MD_STD/src/MD_STD.php";
require_once __DIR__ . "/../../MD_STD/src/MD_STD_IN.php";
/**
* This script contains tests for the Wikidata fetcher.
@ -20,6 +16,7 @@ final class NodaWikidataFetcherTest extends TestCase {
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
* @group ValidOutput
* @small
*
* @return void
*/
@ -35,6 +32,7 @@ final class NodaWikidataFetcherTest extends TestCase {
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
* @group ValidOutput
* @small
*
* @return void
*/
@ -49,6 +47,7 @@ final class NodaWikidataFetcherTest extends TestCase {
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
* @group ValidOutput
* @small
*
* @return void
*/
@ -61,6 +60,10 @@ final class NodaWikidataFetcherTest extends TestCase {
/**
* Test for cleaning wikidata info.
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
* @group ValidOutput
* @small
*
* @return void
*/
public function testCleanWikidataInput():void {
@ -260,6 +263,10 @@ Transclusion expansion time report (%,ms,calls,template)
/**
* Test for cleaning wikidata info.
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
* @group ValidOutput
* @small
*
* @return void
*/
public function testCleanWikidataInputWithoutHtml():void {