Odyssey
Public Member Functions | List of all members
MirTest Class Reference
Inheritance diagram for MirTest:

Public Member Functions

 test_rePhone ($phone, $expected)
 
 test_DateFmt ($datechk, $datefmt, $mindate, $maxdate, $expected)
 
 test_PhoneFormat ($MIR, $Ml, $reqMIR, $phones, $examine, $expected)
 
 test_MIRData ($MIR, $Ml, $reqMIR, $datefmt, $phones, $noEmpty, $BizFNdot, $examine, $expected)
 
 rePhoneProvider ()
 
 DateProvider ()
 
 PhoneProvider ()
 
 MIRProvider ()
 

Detailed Description

Definition at line 8 of file HandleMIRTest.php.

Member Function Documentation

◆ test_DateFmt()

MirTest::test_DateFmt (   $datechk,
  $datefmt,
  $mindate,
  $maxdate,
  $expected 
)

@dataProvider DateProvider

Definition at line 21 of file HandleMIRTest.php.

22  {
23  $this->assertSame($expected, Date_In_Range($datechk, $datefmt, $mindate, $maxdate));
24  }

◆ test_MIRData()

MirTest::test_MIRData (   $MIR,
  $Ml,
  $reqMIR,
  $datefmt,
  $phones,
  $noEmpty,
  $BizFNdot,
  $examine,
  $expected 
)

@dataProvider MIRProvider

Definition at line 40 of file HandleMIRTest.php.

41  {
42  //FormatMIR($MIR, $Ml, $reqMIR, $datefmt = 'Y-m-d', $phones = 'flat', $noEmpty = false, $BizFNdot = false)
43  $cleanMIR = FormatMIR($MIR, $Ml, $reqMIR, $datefmt, $phones, $noEmpty, $BizFNdot);
44 
45  $this->assertSame($expected, $cleanMIR['data'][$examine]);
46  }

◆ test_PhoneFormat()

MirTest::test_PhoneFormat (   $MIR,
  $Ml,
  $reqMIR,
  $phones,
  $examine,
  $expected 
)

@dataProvider PhoneProvider

Definition at line 29 of file HandleMIRTest.php.

30  {
31  //FormatMIR($MIR, $Ml, $reqMIR, $datefmt = 'Y-m-d', $phones = 'flat', $noEmpty = false, $BizFNdot = false)
32  $cleanMIR = FormatMIR($MIR, $Ml, $reqMIR, 'Y-m-d', $phones, false, false);
33 
34  $this->assertEquals($expected, $cleanMIR['data'][$examine]);
35  }

◆ test_rePhone()

MirTest::test_rePhone (   $phone,
  $expected 
)

@dataProvider rePhoneProvider

Definition at line 14 of file HandleMIRTest.php.

15  {
16  $this->assertSame($expected, Match_Phone_Regex($phone));
17  }

The documentation for this class was generated from the following file: