/** * @see \Tbs\Helper\CreditCard\Amex::mask() */ public function testMask() { $rs = Amex::mask('111112222223333'); $this->assertInternalType('string', $rs); $this->assertEquals('11111 222222 3333', $rs); }
/** * @see \Tbs\Helper\CreditCard::sanitize() */ public function testSanitazeTagsAmexUnMasked() { $amex = '371136361802724'; $rs = Card::sanitize($amex . '<script>alert("some content");</script>'); $this->assertEquals(Amex::mask($amex), $rs); }