Skip to content

Commit bd13777

Browse files
authored
Merge pull request #39 from victorgso001/feature/testMaskCnpj
Tests for MaskCnpj
2 parents 6b203da + a236087 commit bd13777

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/HelpersTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,13 @@ public function testToInt()
165165

166166
$this->assertIsInt($number);
167167
}
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+
}
168177
}

0 commit comments

Comments
 (0)