Respect\Validation\Rules\CreditCardTest::testShouldAcceptCreditCardBrandOnConstructor PHP Method

testShouldAcceptCreditCardBrandOnConstructor() public method

    public function testShouldAcceptCreditCardBrandOnConstructor()
    {
        $rule = new CreditCard(CreditCard::VISA);
        $this->assertSame(CreditCard::VISA, $rule->brand);
    }