MaskPatternTest
extends TestCase
in package
Tags
Table of Contents
- 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
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
Return values
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>
Tags
Return values
void —testPenaltyRule1()
public
testPenaltyRule1() : void
Return values
void —testPenaltyRule2()
public
testPenaltyRule2() : void
Return values
void —testPenaltyRule3()
public
testPenaltyRule3() : void
Return values
void —testPenaltyRule4()
public
testPenaltyRule4() : void
Return values
void —assertMask()
private
assertMask(Closure $mask, array<string|int, mixed> $expected) : bool
Parameters
- $mask : Closure
- $expected : array<string|int, mixed>