Example #1
0
 public function testShouldUseDefaultFactoryToCreateInternalRuleBasedOnGivenCountryCodeWhenFactoryIsNotDefined()
 {
     $countryCode = 'DE';
     $rule = new Bank($countryCode);
     $this->assertInstanceOf('Respect\\Validation\\Rules\\Locale\\GermanBank', $rule->getValidatable());
 }