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,7 +6,6 @@
*/
declare(strict_types = 1);
use PHPUnit\Framework\TestCase;
require_once __DIR__ . "/../src/NodaUncertaintyHelper.php";
/**
* This script contains tests for the uncertainty helper.
@ -15,6 +14,9 @@ final class NodaUncertaintyHelperTest extends TestCase {
/**
* Removes uncertainty indicators from an time name.
*
* @group ValidOutput
* @small
*
* @return void
*/
public function testCleanUncertaintyIndicatorsTime():void {
@ -27,6 +29,9 @@ final class NodaUncertaintyHelperTest extends TestCase {
/**
* Attempts guessing whether time is uncertain.
*
* @group ValidOutput
* @small
*
* @return void
*/
public function testGuessTimeCertainty():void {
@ -39,6 +44,9 @@ final class NodaUncertaintyHelperTest extends TestCase {
/**
* Removes uncertainty indicators from an place name.
*
* @group ValidOutput
* @small
*
* @return void
*/
public static function testCleanUncertaintyIndicatorsPlace():void {
@ -51,6 +59,9 @@ final class NodaUncertaintyHelperTest extends TestCase {
/**
* Attempts guessing whether place is uncertain.
*
* @group ValidOutput
* @small
*
* @return void
*/
public static function testGuessPlaceCertainty():void {
@ -65,6 +76,9 @@ final class NodaUncertaintyHelperTest extends TestCase {
/**
* Removes uncertainty indicators from an actor name.
*
* @group ValidOutput
* @small
*
* @return void
*/
public static function testCleanUncertaintyIndicatorsPersinst():void {
@ -78,6 +92,9 @@ final class NodaUncertaintyHelperTest extends TestCase {
/**
* Attempts guessing whether persinst is uncertain.
*
* @group ValidOutput
* @small
*
* @return void
*/
public static function testGuessPersinstCertainty():void {