You are here

function Braintree_CreditCardTest::testMaskedNumber in Commerce Braintree 7

File

braintree_php/tests/unit/CreditCardTest.php, line 28

Class

Braintree_CreditCardTest

Code

function testMaskedNumber() {
  $creditCard = Braintree_CreditCard::factory(array(
    'bin' => '123456',
    'last4' => '7890',
  ));
  $this
    ->assertEquals('123456******7890', $creditCard->maskedNumber);
}