Beispiel #1
0
 public function testShouldUseDefaultFactoryToCreateInternalRuleBasedOnGivenCountryCodeWhenFactoryIsNotDefined()
 {
     $countryCode = 'DE';
     $bank = '123456';
     $rule = new BankAccount($countryCode, $bank);
     $this->assertInstanceOf('Respect\\Validation\\Rules\\Locale\\GermanBankAccount', $rule->getValidatable());
 }