コード例 #1
0
 public function testTypeConstraintAndFieldChoices()
 {
     $constraintChoices = CreditCard::getTypeConstraintChoices();
     $this->assertType('array', $constraintChoices);
     $fieldChoices = CreditCard::getTypeFieldChoices();
     $this->assertType('array', $fieldChoices);
     $this->assertEquals(count($constraintChoices), count($fieldChoices));
     $this->assertEquals($constraintChoices, array_keys($fieldChoices));
 }