Skip to content

Commit

Permalink
Merge pull request #39 from victorgso001/feature/testMaskCnpj
Browse files Browse the repository at this point in the history
Tests for MaskCnpj
  • Loading branch information
esron authored Oct 6, 2020
2 parents 6b203da + a236087 commit bd13777
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,13 @@ public function testToInt()

$this->assertIsInt($number);
}

public function testMaskCnpj()
{
$wrong = 'aaaaaaaaaaaaa';
$right = '11222333444455';

$this->assertEquals(Helpers::maskCnpj($right), '11.222.333/4444-55');
$this->assertNull(Helpers::maskCnpj($wrong));
}
}

0 comments on commit bd13777

Please sign in to comment.