MaskPatternTest
extends TestCase
in package
FinalYes
Tags
Table of Contents
Methods
- maskPatternProvider() : array<string|int, mixed>
- testInvalidMaskPatternException() : void
- Tests if an exception is thrown on an incorrect mask pattern
- testMask() : void
- Tests if the mask function generates the correct pattern
- testPenaltyRule1() : void
- testPenaltyRule2() : void
- testPenaltyRule3() : void
- testPenaltyRule4() : void
- assertMask() : bool
Methods
maskPatternProvider()
public
static maskPatternProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>testInvalidMaskPatternException()
Tests if an exception is thrown on an incorrect mask pattern
public
testInvalidMaskPatternException() : void
testMask()
Tests if the mask function generates the correct pattern
public
testMask(int $pattern, array<string|int, mixed> $expected) : void
Parameters
- $pattern : int
- $expected : array<string|int, mixed>
Attributes
- #[DataProvider]
- 'maskPatternProvider'
testPenaltyRule1()
public
testPenaltyRule1() : void
testPenaltyRule2()
public
testPenaltyRule2() : void
testPenaltyRule3()
public
testPenaltyRule3() : void
testPenaltyRule4()
public
testPenaltyRule4() : void
assertMask()
private
assertMask(Closure $mask, array<string|int, mixed> $expected) : bool
Parameters
- $mask : Closure
- $expected : array<string|int, mixed>