Beispiel #1
0
 /**
  * @see \Tbs\Helper\CreditCard\Visa::mask()
  */
 public function testMask()
 {
     $rs = Visa::mask('1111222233334444');
     $this->assertInternalType('string', $rs);
     $this->assertEquals('1111 2222 3333 4444', $rs);
 }
Beispiel #2
0
 /**
  * @see \Tbs\Helper\CreditCard::sanitize()
  */
 public function testSanitazeTagsVisaUnMasked()
 {
     $visa = '4556518283874759';
     $rs = Card::sanitize($visa . '<script>alert("some content");</script>');
     $this->assertEquals(Visa::mask($visa), $rs);
 }