Fix code smells

This commit is contained in:
jrenslin committed 2024-06-11 21:57:56 +02:00
1 parent d4918dd893
commit 94dfa17290
8 files changed
+18 -21

No files matched your search

+3 -2
View File
@@ -47,6 +47,7 @@ public static function valid_id_provider():array {
*/
public function test_sanitize_id_works(mixed $to_validate, int $expected):void {
self::assertEquals($expected, MD_STD_IN::sanitize_id($to_validate));
}
/**
@@ -79,6 +80,7 @@ public function test_sanitize_id_fails(mixed $to_validate):void {
MD_STD_IN::sanitize_id($to_validate);
}
/**
* Data provider for valid IDs.
*
@@ -316,7 +318,6 @@ public function test_get_http_input_text():void {
self::expectException(MDpageParameterNotFromListException::class);
MD_STD_IN::get_http_input_text("a", "", ['a']);
}
/**
@@ -342,7 +343,6 @@ public function test_get_http_post_text():void {
self::expectException(MDpageParameterNotFromListException::class);
MD_STD_IN::get_http_post_text("a", "", ['a']);
}
/**
@@ -425,6 +425,7 @@ public function test_sanitize_email_empty():void {
*/
public function test_sanitize_email_works(string $to_validate, string $expected):void {
self::assertEquals($expected, MD_STD_IN::sanitize_email($to_validate));
}
/**
-2
View File
@@ -12,7 +12,6 @@
* Tests for MD_STD.
*/
final class MD_STD_Test extends TestCase {
/**
* Returns sample dates and their equivalent integer values according
* to MD_STD::date_to_int().
@@ -58,5 +57,4 @@ public function test_date_to_int(string $date, int $expectedInt):void {
self::assertEquals($date, $toStr);
}
}
-1
View File
@@ -20,6 +20,5 @@
}
}
});