Respect\Validation\Rules\BankAccountTest::testShouldUseDefaultFactoryToCreateInternalRuleBasedOnGivenCountryCodeWhenFactoryIsNotDefined PHP Метод

testShouldUseDefaultFactoryToCreateInternalRuleBasedOnGivenCountryCodeWhenFactoryIsNotDefined() публичный Метод

    public function testShouldUseDefaultFactoryToCreateInternalRuleBasedOnGivenCountryCodeWhenFactoryIsNotDefined()
    {
        $countryCode = 'DE';
        $bank = '123456';
        $rule = new BankAccount($countryCode, $bank);
        $this->assertInstanceOf(GermanBankAccount::class, $rule->getValidatable());
    }