'PREFIX_%s%d_SUFFIX', '/PREFIX_([A-Z]\d)_SUFFIX/'
],
['PREFIX_%d%s_SUFFIX', '/PREFIX_(\d[A-Z])_SUFFIX/'
],
['PREFIX_%d%s_SUFFIX', '/PREFIX_(\d[A-Z])_SUFFIX/'
],
['PREFIX_%d%s_NOW_WITH_UNRENDERED_VARS_%s%s%d%d_SUFFIX', '/PREFIX_(\d[A-Z])_NOW_WITH_UNRENDERED_VARS_%s%s%d%d_SUFFIX/'
],
['ILLEGAL_VAR_STOPS_THE_CHAIN_%d%s%q%d%s_SUFFIX', '/ILLEGAL_VAR_STOPS_THE_CHAIN_(\d[A-Z])%q%d%s_SUFFIX/'
],
];
} public function testGenerateIndividualCodesWith0RequestedCodes(): void
{ $pattern = 'PREFIX_%s%d%s%d_SUFFIX';
$codeList =
$this->codesService->
generateIndividualCodes($pattern, 0
);
static::
assertCount(0,
$codeList);
} /**
* @dataProvider generateIndividualCodesDataProvider
*/
public function testGenerateIndividualCodesWithValidRequirements(int
$requestedAmount): void
{ $pattern = 'PREFIX_%s%d%s%d_SUFFIX';
$expectedCodeLength = \
strlen(str_replace('%', '',
$pattern));