We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b203da + a236087 commit bd13777Copy full SHA for bd13777
1 file changed
tests/HelpersTest.php
@@ -165,4 +165,13 @@ public function testToInt()
165
166
$this->assertIsInt($number);
167
}
168
+
169
+ public function testMaskCnpj()
170
+ {
171
+ $wrong = 'aaaaaaaaaaaaa';
172
+ $right = '11222333444455';
173
174
+ $this->assertEquals(Helpers::maskCnpj($right), '11.222.333/4444-55');
175
+ $this->assertNull(Helpers::maskCnpj($wrong));
176
+ }
177
0 commit comments