Add autoloader for tests, phpunit config
This commit is contained in:
		| @@ -6,8 +6,6 @@ | ||||
|  */ | ||||
| declare(strict_types = 1); | ||||
| use PHPUnit\Framework\TestCase; | ||||
| require_once __DIR__ . "/../src/NodaValidationHelper.php"; | ||||
| require_once __DIR__ . "/../../MDErrorReporter/exceptions/generic/MDgenericInvalidInputsException.php"; | ||||
|  | ||||
| /** | ||||
|  * This script contains tests for the validation of single field contents. | ||||
| @@ -16,6 +14,8 @@ final class NodaValidationHelperTest extends TestCase { | ||||
|     /** | ||||
|      * Test successfully refusing too short actor descriptions. | ||||
|      * | ||||
|      * @small | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function testActorDescriptionValidationFailsOnTooShortInput():void { | ||||
| @@ -28,6 +28,8 @@ final class NodaValidationHelperTest extends TestCase { | ||||
|     /** | ||||
|      * Test successfully refusing actor descriptions that have too few distinct characters. | ||||
|      * | ||||
|      * @small | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function testActorDescriptionValidationFailsOnTooFewDistinctCharacters():void { | ||||
| @@ -40,6 +42,8 @@ final class NodaValidationHelperTest extends TestCase { | ||||
|     /** | ||||
|      * Test successfully refusing actor descriptions that simply duplicate the actor name. | ||||
|      * | ||||
|      * @small | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function testActorDescriptionValidationFailsOnDuplicatedActorNames():void { | ||||
| @@ -60,6 +64,8 @@ final class NodaValidationHelperTest extends TestCase { | ||||
|     /** | ||||
|      * Test that a valid description is accepted. | ||||
|      * | ||||
|      * @small | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function testActorDescriptionValidationAcceptsValidDescription():void { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user