test: update SignatureFlow tests for NONE mode

Add NONE mode to valid flow provider and remove zero from
invalid numeric values since 0 is now a valid value (NONE).

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
Vitor Mattos 2025-12-17 02:11:27 -03:00
parent e616899eeb
commit 5048bfb07e
No known key found for this signature in database
GPG key ID: 6FECE2AD4809003A

View file

@ -15,6 +15,7 @@ use PHPUnit\Framework\Attributes\DataProvider;
final class SignatureFlowTest extends TestCase { final class SignatureFlowTest extends TestCase {
public static function validFlowProvider(): array { public static function validFlowProvider(): array {
return [ return [
'none' => [SignatureFlow::NONE, SignatureFlow::NUMERIC_NONE, 'none'],
'parallel' => [SignatureFlow::PARALLEL, SignatureFlow::NUMERIC_PARALLEL, 'parallel'], 'parallel' => [SignatureFlow::PARALLEL, SignatureFlow::NUMERIC_PARALLEL, 'parallel'],
'ordered_numeric' => [SignatureFlow::ORDERED_NUMERIC, SignatureFlow::NUMERIC_ORDERED_NUMERIC, 'ordered_numeric'], 'ordered_numeric' => [SignatureFlow::ORDERED_NUMERIC, SignatureFlow::NUMERIC_ORDERED_NUMERIC, 'ordered_numeric'],
]; ];
@ -29,7 +30,6 @@ final class SignatureFlowTest extends TestCase {
public static function invalidNumericProvider(): array { public static function invalidNumericProvider(): array {
return [ return [
'zero' => [0],
'negative' => [-1], 'negative' => [-1],
'three' => [3], 'three' => [3],
'large' => [999], 'large' => [999],